Checkbox Group

Provides shared state to a series of checkboxes.

Apples

API reference

Checkbox Group is composed together with Checkbox. Import the components and place them together:

Anatomy
import { Checkbox } from '@base-ui-components/react/checkbox';import { CheckboxGroup } from '@base-ui-components/react/checkbox-group';
<CheckboxGroup>  <Checkbox.Root /></CheckboxGroup>
PropTypeDefault
defaultValue

string[]

undefined

value

string[]

undefined

onValueChange

(value, event) => void

undefined

allValues

string[]

undefined

disabled

boolean

false

className

string | (state) => string

undefined

render

| React.ReactElement
| (props, state) => React.ReactElement

undefined

Attribute
Description
data-disabled