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