Checkbox API
API reference for the Checkbox components.
Checkbox.Root
Props
namespace
stringNamespace for context provision to children (Indicator, HiddenInput)
Default: "v0:checkbox:root"
modelValue
booleanEvents
update:model-value
[value: boolean]Slots
default
CheckboxRootSlotProps<V>Checkbox.Group
Props
mandatory
boolean | "force"Controls 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[]Events
update:model-value
[value: T | T[]]Slots
default
CheckboxGroupSlotPropsCheckbox.HiddenInput
Props
namespace
stringNamespace for context injection from parent Checkbox.Root
Default: "v0:checkbox:root"
Checkbox.Indicator
Props
namespace
stringNamespace for context injection from parent Checkbox.Root
Default: "v0:checkbox:root"
Slots
default
CheckboxIndicatorSlotPropsCheckbox.SelectAll
Props
Slots
default
CheckboxSelectAllSlotProps