Group API
API reference for the Group components.
Related
Explore these related pages for additional context and usage patterns.
| Page | Category |
|---|---|
| Group | Providers |
| createGroup | Selection |
| Selection | Providers |
Group.Root
Props
namespace
string | undefinedNamespace for dependency injection (must match GroupItem namespace)
Default: "v0:group"
mandatory
boolean | "force" | undefinedControls 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
Default: false
modelValue
T | T[] | undefinedEvents
update:model-value
[value: T | T[]]Slots
default
GroupRootSlotPropsGroup.Item
Props
indeterminate
MaybeRefOrGetter<boolean> | undefinedSets the indeterminate state (for checkboxes)
Default: false
Slots
default
GroupItemSlotProps<V>