Glass segmented Pro
A segmented control whose thumb is a glass lens. It slides and stretches between options, bending the light behind it on the way, while the words stay crisp on top.
Caractère
Joueur
Ajoutez-le à votre app
$
npx velvo add glass-segmentedPour Claude Code, Cursor ou tout projet avec un terminal.
À utiliser pour
- Two to four choices: dates, ranges, views.
Pas pour
- More than four options.
- Plain pages without colour behind.
Props
Lues dans le TypeScript du composant lui-même, donc toujours à jour.
PropTypePar défaut
optionsObligatoire{ id: T; label: string }[]valueTdefaultValueTonChange(v: T) => voidlabelstring'Choose one'Specs
- Category
- Glass
- Tier
- Pro
- Built with
- React and TypeScript
- Files
- 17
- Size
- 341 KB
- Needs
- framer-motion
- Install
- npx velvo add glass-segmented
- Works with
- Next.js, Vite, Remix, Expo web
Licence
Velvo Pro licence- Personal and commercial use
- Change it however you like
- No credit needed
Not for resale as a component or a UI kit.