Toggle Group
A set of toggle buttons for selection within a group.
A set of toggle buttons for selection within a group.
API reference docs for the component. Learn about the props, CSS, and other APIs of this exported module.
string
boolean
string[]
'ltr' | 'rtl'
The document's text/writing direction.
boolean
Whether the toggle is disabled.
() => ShadowRoot | Node | Document
A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron.
string
The unique identifier of the machine.
Partial<{ root: string; toggle(value: string): string }>
The ids of the elements in the toggle. Useful for composition.
boolean
Whether to loop focus inside the toggle group.
boolean
Whether to allow multiple toggles to be selected.
(details: ValueChangeDetails) => void
Function to call when the toggle is clicked.
Orientation
The orientation of the toggle group.
boolean
Whether to use roving tab index to manage focus.
string[]
The values of the toggles in the group.
(props: ToggleProps) => Dict<any>
Dict<any>
(values: string[]) => void
Function to set the value of the toggle group.
string[]
The value of the toggle group.