Dev Design Library

Switch

A tactile toggle for settings that take effect immediately.

Switch preview
Library
Arc Library
Framework
React
Type
ui
License
MIT
Dependencies
@radix-ui/react-switch, motion
Install
npx shadcn@latest add https://uiarc.dev/r/switch.json
Files
  • registry/components/switch/switch.tsx
  • registry/components/switch/switch.module.css
  • registry/motion-tokens.ts
  • lib/motion-tokens.ts
Source
https://github.com/kuratlielia/arc-library

Categories

More from Arc Library