SelectionRoot API
API reference for the SelectionRoot component.
| Name | Type | Default | Description |
|---|
namespace | string | "v0:selection" | Namespace for dependency injection (must match SelectionItem namespace) |
disabled | boolean | false | Disables the entire selection instance |
enroll | boolean | false | Auto-select non-disabled items on registration |
mandatory | boolean | "force" | false | 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 |
multiple | boolean | false | Enable multi-selection mode (array v-model) |
modelValue | T | T[] | — | — |
| Name | Payload | Description |
|---|
update:model-value | [value: T | T[]] | — |
| Name | Slot Props | Description |
|---|
default | SelectionRootSlotProps | — |