Selection API
API reference for the Selection 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
SelectionRootSlotPropsSelection.Item
Props
Slots
default
SelectionItemSlotProps<V>