Apples
API Reference
Props mirror Base UI React where applicable, adapted for Svelte 5. Native HTML attributes for the rendered element are also accepted unless noted.
CheckboxGroup
Provides a shared state to a series of checkboxes.
Props
defaultValue string —
- Name
defaultValue- Description
Uncontrolled initial value.
- Type
string[]
onValueChange function —
- Name
onValueChange- Description
Event handler called when the value changes.
- Type
((value: string[], event: Event) => void) | undefined
disabled boolean false
- Name
disabled- Description
Whether the control ignores user interaction.
- Type
boolean- Default
false
Data attributes
| Attribute | Description |
|---|---|
data-disabled | Present when the checkbox group is disabled. |