Select API
API reference for the Select components.
Selection.Root
Props
namespace
stringNamespace for dependency injection (must match SelectionItem namespace)
Default: "v0:selection"
mandatory
boolean | "force"Controls 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[]Events
update:model-value
[value: T | T[]]Slots
default
SelectionRootSlotPropsSelect.Root
Props
mandatory
boolean | "force"Controls 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>