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
| Prop | Type | Default | Description |
|---|---|---|---|
options | Option[] | [] | Available options |
value | string | string[] | – | Selected value(s) |
onChange | (value) => void | – | Change handler |
multi | boolean | false | Multi-select mode |
searchable | boolean | false | Enable search |
placeholder | string | – | Placeholder text |
disabled | boolean | false | Disabled state |