Toggle
Toggle provides an intuitive way to select between multiple options. It supports both single and multi-selection modes with various visual styles and orientations for different use cases.
Examples
(6)Properties
Playground
Basic Group
Render a simple
ToggleGroup and listen for onChange to track the active value.Exclusive Mode
Enable the
exclusive prop so the group behaves like radio buttons with a single active value.Multiple Values
Read the array returned by
onChange to keep several toggles activated together.Orientation
Use the
orientation prop to switch between horizontal rows and vertical stacks of toggle buttons.Size Variants
Set the
size prop (xs through 3xl) to match the footprint of surrounding controls.Standalone Toggle
Drive a single toggle by managing its
selected state without a surrounding group.Scan to open this page on your phonereact-ui-library.com/components/Toggle
</>
react-ui-library
100+ accessible, themeable components that work seamlessly across iOS, Android, and Web.
A Platform Blocks product.
Quick Links
Resources