Skip to content

Select

Dropdown select component with search and multi-select support.

Import

tsx
import { ZSelect } from "@zurto/ui";

Usage

tsx
<ZSelect
  options={[
    { value: "1", label: "Option 1" },
    { value: "2", label: "Option 2" },
  ]}
  placeholder="Select an option"
/>

Props

PropTypeDefaultDescription
optionsOption[][]Available options
valuestring | string[]Selected value(s)
onChange(value) => voidChange handler
multibooleanfalseMulti-select mode
searchablebooleanfalseEnable search
placeholderstringPlaceholder text
disabledbooleanfalseDisabled state

Released under the MIT License.