The CheckboxGroup component extends Base UI's CheckboxGroup. It provides shared state to a series of checkboxes, making it easy to manage multiple selections and implement "select all" patterns.
Installation
Here is the component implementation code that you can copy to your project:
Use value and onValueChange to control the group state. Each checkbox needs a unique value prop.
Parent checkbox
Add the parent prop to a checkbox to make it control all other checkboxes in the group. Pass allValues to the group to enable the indeterminate state when some (but not all) items are selected.