Toggle Group
A series of toggle buttons with a shared state.
API reference
Import the component and use it as a single part:
Anatomy
import { ToggleGroup } from '@base-ui-components/react/toggle-group';
<ToggleGroup />
Toggle Group
Prop | Type | Default | |
---|---|---|---|
className | string | (state) => string | undefined | |
defaultValue | array | undefined | |
onValueChange | function(groupValue: Array<any>, event: Event) => void | undefined | |
render | | React.ReactElement | undefined | |
toggleMultiple | boolean | false | |
value | array | undefined |