Checkbox API
API reference for the Checkbox components.
Related
Explore these related pages for additional context and usage patterns.
| Page | Category |
|---|---|
| Checkbox | Forms |
| createGroup | Selection |
| Group | Providers |
Checkbox.Root
Props
namespace
string | undefinedNamespace for context provision to children (Indicator, HiddenInput)
Default: "v0:checkbox:root"
groupNamespace
string | undefinedNamespace for connecting to parent Checkbox.Group
Default: "v0:checkbox:group"
modelValue
boolean | undefinedEvents
update:model-value
[value: boolean]Slots
default
CheckboxRootSlotProps<V>Checkbox.Group
Props
mandatory
boolean | "force" | undefinedControls mandatory checkbox behavior: - false (default): No mandatory 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
CheckboxGroupSlotPropsCheckbox.HiddenInput
Props
namespace
string | undefinedNamespace for context injection from parent Checkbox.Root
Default: "v0:checkbox:root"
Checkbox.Indicator
Props
namespace
string | undefinedNamespace for context injection from parent Checkbox.Root
Default: "v0:checkbox:root"
Slots
default
CheckboxIndicatorSlotPropsCheckbox.SelectAll
Props
namespace
string | undefinedNamespace for context provision to children (Indicator)
Default: "v0:checkbox:root"
groupNamespace
string | undefinedNamespace for connecting to parent Checkbox.Group
Default: "v0:checkbox:group"
Slots
default
CheckboxSelectAllSlotProps