Glassmorphic Segmented Control
A production-scale, light + dark Glassmorphic Segmented Control component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add glassmorphic-segmented-controlLive preview available in the gallery.
Usage
import { GlassmorphicSegmentedControl } from "@lerpa/ui";
<GlassmorphicSegmentedControl />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | |
| tabs | string[] | — | |
| defaultIndex | number | — | |
| onChange | (index: number, label: string) => void | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.