SegmentedControl
Segmented controls present a small set of exclusive options. The indicator animates between segments with support for horizontal and vertical layouts, optional auto contrast for filled variants, and reduced motion awareness for accessibility.
Examples
(8)Properties
(45)Playground
Basic Usage
Set
defaultValue to preselect a segment and let the control manage focus and selection state internally.Controlled Value
Provide
value and onChange to synchronize the selected segment with external state or companion controls.Sizes
Use the
size prop to match dense toolbars or spacious layouts without changing the underlying data.Full Width
Apply
fullWidth to let segments expand and distribute evenly across the available horizontal space.Orientation
Toggle the
orientation prop to rotate the control vertically for sidebars or keep it horizontal for toolbars.Custom Colors
Set the
color prop to pull semantic tokens or pass custom values, and enable autoContrast when you need readable labels on vivid fills.Interaction States
Combine
disabled, readOnly, or per-item disabled flags to signal availability without changing layout or selection rules.Visual Variants
Choose between
default, filled, outline, or ghost variants and pair them with semantic color tokens to match the surrounding surface.Scan to open this page on your phonereact-ui-library.com/components/SegmentedControl
</>
react-ui-library
100+ accessible, themeable components that work seamlessly across iOS, Android, and Web.
A Platform Blocks product.
Quick Links
Resources