Lanseringsvecka50 % rabatt på ett år AuteurSe planer
MCP
SpacesSkaffa Pro
Alla komponenter

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.

Öppna i editorn
Karaktär
Lekfull

Lägg till i din app

$npx velvo add glass-segmented

För Claude Code, Cursor eller vilket projekt som helst med terminal.

Använd till

  • Two to four choices: dates, ranges, views.

Inte till

  • More than four options.
  • Plain pages without colour behind.

Props

Lästa direkt ur komponentens egen TypeScript, så de är alltid aktuella.

PropTypStandard
optionsKrävs{ id: T; label: string }[]
valueT
defaultValueT
onChange(v: T) => void
labelstring'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.

Tags

glasstypographycontrolproreact
NästaGlass prompt