Select API
API reference for the Select components.
Related
Explore these related pages for additional context and usage patterns.
| Page | Category |
|---|---|
| Select | Forms |
| createSelection | Selection |
| createGroup | Selection |
| useVirtualFocus | System |
| Popover | Disclosure |
Selection.Root
Props
namespace
string | undefinedNamespace for dependency injection (must match SelectionItem namespace)
Default: "v0:selection"
mandatory
boolean | "force" | undefinedControls mandatory selection behavior: - false (default): No mandatory selection enforcement - true: Prevents deselecting the last selected item - `force`: Automatically selects the first non-disabled item on registration
Default: false
modelValue
T | T[] | undefinedEvents
update:model-value
[value: T | T[]]Slots
default
SelectionRootSlotPropsSelect.Root
Props
mandatory
boolean | "force" | undefinedControls mandatory selection behavior: - false (default): No mandatory selection enforcement - true: Prevents deselecting the last selected item - `force`: Automatically selects the first non-disabled item
Default: false
modelValue
anyEvents
update:model-value
[value: any]Slots
default
SelectRootSlotPropsSelect.Activator
Props
Slots
default
SelectActivatorSlotPropsSelect.Content
Props
Slots
default
SelectContentSlotPropsSelect.Cue
Props
Slots
default
SelectCueSlotPropsSelect.HiddenInput
Props
Select.Item
Props
Slots
default
SelectItemSlotProps<V>Select.Placeholder
Props
Slots
default
SelectPlaceholderSlotPropsSelect.Value
Props
Slots
default
SelectValueSlotPropsSelection.Item
Props
Slots
default
SelectionItemSlotProps<V>