Select
A dropdown select component for choosing from a list of options.
Import
Usage
Select Props
| Attribute | Type | Default | Description |
|---|---|---|---|
| value | string | - | The controlled value of the select. |
| defaultValue | string | - | The default value (uncontrolled). |
| onValueChange | (value: string) => void | - | Callback when the value changes. |
| disabled | boolean | false | Whether the select is disabled. |
SelectTrigger Props
| Attribute | Type | Default | Description |
|---|---|---|---|
| size | 'sm' | 'default' | 'default' | The size of the select trigger. |
| className | string | - | Additional CSS classes for styling. |
SelectItem Props
| Attribute | Type | Default | Description |
|---|---|---|---|
| value | string | - | The value of the select item. |
| disabled | boolean | false | Whether the select item is disabled. |
| className | string | - | Additional CSS classes for styling. |

