Import
Basic Usage
Key Features
- Manages state for multiple checkboxes
- Controlled and uncontrolled modes
- Support for parent checkbox (select all)
- Works with Field component for validation
- Accessible with proper ARIA attributes
Key Props
value
Type:string[]
Names of the checkboxes in the group that should be ticked. Use with onValueChange for controlled mode.
defaultValue
Type:string[]
Names of the checkboxes in the group that should be initially ticked. Use for uncontrolled mode.
onValueChange
Type:(value: string[], eventDetails: ChangeEventDetails) => void
Event handler called when a checkbox in the group is ticked or unticked.
allValues
Type:string[]
Names of all checkboxes in the group. Use this when creating a parent checkbox.
disabled
Type:boolean
Default: false
Whether the component should ignore user interaction.
Styling
- Tab Title
- Tab Title