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 />| Prop | Type | Default | |
|---|---|---|---|
defaultValue | 
  | 
  | |
value | 
  | 
  | |
onValueChange | 
  | 
  | |
toggleMultiple | 
  | 
  | |
disabled | 
  | 
  | |
loop | 
  | 
  | |
className | 
  | 
  | |
render | 
  | 
  | 
| Attribute | Description  | |
|---|---|---|
data-orientation | Indicates the orientation of the toggle group.  | |
data-disabled | Present when the toggle group is disabled.  | |
data-multiple | Present when the toggle group allows multiple buttons to be in the pressed state at the same time.  | |