Segmented Control
A production-scale, light + dark Segmented Control component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add segmented-controlUsage
import { SegmentedControl } from "@lerpa/ui";
<SegmentedControl />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| options | SegmentedOption[] | — | |
| defaultId | string | — | |
| accent | string | — | |
| onChange | (id: string) => void | — | |
| size | "sm" | "md" | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.