Toggle Group

Provides a shared state to a series of toggle buttons.

API reference

Import the component and use it as a single part:

Anatomy
import { ToggleGroup } from '@base-ui-components/react/toggle-group';
<ToggleGroup />
PropTypeDefault
defaultValue

array

undefined

value

array

undefined

onValueChange

function(groupValue: Array<any>, event: Event) => void

undefined

toggleMultiple

boolean

false

disabled

boolean

false

loop

boolean

true

className

string | (state) => string

undefined

render

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

undefined

Attribute
Description
data-orientation
data-disabled
data-multiple