SingleRoot API
API reference for the SingleRoot component.
| Name | Type | Default | Description |
|---|
namespace | string | "v0:single" | Namespace for dependency injection (must match SingleItem namespace) |
disabled | boolean | false | Disables the entire single instance |
enroll | boolean | false | Auto-select non-disabled items on registration |
mandatory | boolean | "force" | false | Controls mandatory single behavior:
- false (default): No mandatory single enforcement
- true: Prevents deselecting the last selected item
- `force`: Automatically selects the first non-disabled item on registration |
modelValue | T | T[] | — | — |
| Name | Slot Props | Description |
|---|
default | SingleRootSlotProps | — |