Animated Segmented Control

Use Animated Segmented Control for compact settings and view modes, such as interface density, layout style, theme, or alignment. It changes one local value at a time, rather than navigating between content panels.

Preview

Reduce motion:Off
Inspect

List density

Choose how much room each row uses.

Review new componentsDesign system
Refine motion detailsInteraction pass
Publish release notesDocumentation

Installation

Usage

When to use it

Use this component for a small local mode switch. For navigation between content panels, use Fluid Tabs instead.

API

PropertyTypeDefaultDescription
itemsAnimatedSegmentedControlItem[]requiredOptions rendered in the control.
valuestring—Controlled selected value.
defaultValuestring—Initial selected value for uncontrolled usage.
onValueChange( value: string, ) => void—Called after an option is selected.
classNamestring—Additional CSS classes.
ariaLabelstring"View mode"Accessible name for the group of options.

Accessibility

Set ariaLabel to describe the setting. The control groups native toggle buttons, with Tab navigation and Space or Enter activation. Uncontrolled selection starts at the first enabled option and falls back when the selected option is removed or disabled. A controlled value remains the parent's responsibility. Keyboard selection and reduced-motion mode change the active surface immediately.

Was this page helpful?

Your response helps us improve component docs.