Неделя запускаСкидка 50% на год AuteurТарифы
MCP
Все компоненты

Glass switch Pro

A clear glass track and a thick lens for a knob, carrying an icon. Hold it and the knob swells; drag it and it stretches the way it’s going, gives a little past the ends, and settles.

Открыть в редакторе
Характер
Игривый

Добавить в приложение

$npx velvo add glass-switch

Для Claude Code, Cursor и любого проекта с терминалом.

Подходит для

  • Settings that deserve a moment: location, night mode, focus.
  • Over a lock screen or a media backdrop.

Не подходит для

  • Long lists of settings: use the plain Toggle there.

Пропсы

Прочитаны прямо из TypeScript компонента, поэтому всегда актуальны.

ПропсТипПо умолчанию
onboolean
defaultOnbooleanfalse
onChange(on: boolean) => void
iconIconName'location'
sizenumber1
labelstring'Switch'

Specs

Category
Glass
Tier
Pro
Built with
React and TypeScript
Files
18
Size
402 KB
Needs
framer-motion
Install
npx velvo add glass-switch
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

glassgesturecontrolproreact
ДальшеGlass segmented