Installation
Usage
Component API
Select
Root select component. Built on Radix UI Select.defaultValue- Default selected valuevalue- Controlled valueonValueChange- Callback when value changesdisabled- Disables the selectitems- Array of items (required)
SelectTrigger
Button that triggers the select dropdown.size- Trigger size ("sm"|"default")aria-invalid- Shows error state styling
SelectValue
Displays the selected value or placeholder.placeholder- Text shown when no value is selected
SelectContent
Dropdown content container.position- Positioning mode ("item-aligned"|"popper")align- Horizontal alignment ("start"|"center"|"end")
SelectGroup
Groups related select items.SelectItem
Individual selectable option.value- Unique value for this itemdisabled- Disables this item
SelectLabel
Label for a group of items.SelectSeparator
Visual separator between items.Examples
Basic Select
With Groups
Organize items with labels and separators:Scrollable
Select with many items:Disabled State
Invalid State
Show validation errors:Controlled Select
With Icons
Accessibility
- Full keyboard navigation support
- Type-ahead to find items
- Proper ARIA attributes
- Focus management
- Screen reader announcements