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

PropTypeDefault
classNamestring | (state) => stringundefined
defaultValuearrayundefined
onValueChangefunction(groupValue: Array<any>, event: Event) => voidundefined
render| React.ReactElement
| (props, state) => React.ReactElement
undefined
toggleMultiplebooleanfalse
valuearrayundefined