Dev Design Library

Switch

A toggle switch with thumb travel animation and hidden checkbox for forms.

Switch preview
Library
Nexvyn UI
Framework
React
Type
ui
License
CC-BY-NC-4.0+Commons-Clause+MIT
Dependencies
motion
Install
npx shadcn@latest add @nexvyn/switch
Files
  • components/ui/switch.tsx
  • lib/motion-tokens.ts
  • lib/sound.ts
  • lib/utils.ts
Source
https://github.com/Nexvyn/Nexvyn-ui

Categories

More from Nexvyn UI