Select

A dropdown select component for choosing from a list of options.

Import

Usage

Select Props

AttributeTypeDefaultDescription
valuestring-The controlled value of the select.
defaultValuestring-The default value (uncontrolled).
onValueChange(value: string) => void-Callback when the value changes.
disabledbooleanfalseWhether the select is disabled.

SelectTrigger Props

AttributeTypeDefaultDescription
size'sm' | 'default''default'The size of the select trigger.
classNamestring-Additional CSS classes for styling.

SelectItem Props

AttributeTypeDefaultDescription
valuestring-The value of the select item.
disabledbooleanfalseWhether the select item is disabled.
classNamestring-Additional CSS classes for styling.