Selection API
API reference for the Selection components.
Related
Explore these related pages for additional context and usage patterns.
| Page | Category |
|---|---|
| Selection | Providers |
| createSelection | Selection |
| Single | Providers |
| Group | Providers |
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
SelectionRootSlotPropsSelection.Item
Props
Slots
default
SelectionItemSlotProps<V>