Segmented toggle
A segmented control whose selection pill slides between options on a snap spring.
API reference
Components
<SegmentedToggle />
Segmented toggle root with a shared sliding pill.
value
Currently selected option value (controlled).
onChange
Called when a new option is selected.
ariaLabel?
Accessible name for the role="group" container.
layoutId?
Override the shared pill's layoutId.
className?
Merged onto the segmented shell.
children?
SegmentedToggleOption children.
<SegmentedToggleOption />
One option of a SegmentedToggle.
value
This option's value.
children?
Option label and extra content.
className?
Merged onto the option <button>.
Featured in
See the segmented toggle composed into full sections.
