Select Box Component

A customizable select component for selecting a value from a list of options.

Basic Usage

A simple select box with options.

Sizes

Select boxes in different sizes.

States

Select boxes in different states.

Disabled

Error

Theme Selector Example

A practical example of using the select component.

API Reference

The props and options for the Select component.

Select

PropDescriptionTypeDefault
valueThe controlled value of the selectstring-
defaultValueThe default value of the selectstring-
onChangeCallback when value changes(value: string) => void-
disabledWhether the select is disabledbooleanfalse

SelectTrigger

PropDescriptionTypeDefault
sizeThe size of the trigger"sm" | "md" | "lg""md"
errorWhether to show error stylingbooleanfalse

SelectValue

PropDescriptionTypeDefault
placeholderPlaceholder text when no value is selectedstring"Select an option"

SelectItem

PropDescriptionTypeDefault
valueThe value of the itemstringRequired
disabledWhether the item is disabledbooleanfalse