← All controls

Core / Controls

Segmented Control

Switches between closely related modes or views.

Live example

List view selected.

Interactive preview using local sample data. Styling is intentionally left to the consuming project.

Usage

<SegmentedControl options={options} value="list" />

Adopt to your project

Keep this component semantically neutral. Use its documented props for behavior and className for project-specific spacing, width, typography, and visual treatment.

Accessibility

Use radio or tab semantics according to whether it changes a setting or content.

API reference

Public attribute
options
value
onChange
disabled

The preview above uses a safe local fixture. Confirm exact TypeScript props when adapting it to your application.

Installation

Full library
pnpm install:project /absolute/path/to/your-project

Planned guided selection
Controls → Segmented Control