Forms
Segmented Control
Two to five mutually exclusive views, with an indicator that slides.
src/components/ui/segmented-control.tsxBehavior from @ui-sdk/react/segmented-control
Text and icons
Import
tsx
import { SegmentedControl } from "@/components/ui/segmented-control";Guidelines
- For switching views of the same data, not for changing pages (use Tabs).
- Icon-only versions use the label as the accessible name.