Select
Listbox for picking one option.
Usage
Compose Select.Root, Select.Trigger, Select.Content, and Select.Item. The content
portals to the body, so it escapes overflow clipping.
States
Individual items can be disabled while the rest remain interactive.
Props
All subcomponents also forward their corresponding Bits props via spreading.
| Prop | Type | Default |
|---|---|---|
Select.Root · type Required. Selection mode. | 'single' | 'multiple' | — |
Select.Root · value Bindable selected value. | string | — |
Select.Trigger · class Extra classes on the trigger. | string | — |
Select.Item · value Required. The value this item represents. | string | — |
Select.Item · label Required. Accessible label text for the item. | string | — |
Select.Item · class Extra classes on the item. | string | — |