Dev Design Library

Pull Cord Switch

Pull the ball chain to switch the site's lights; light pours from the bulb as a cone.

Pull Cord Switch preview
Library
UI Lab
Framework
React
Type
component
License
MIT
Install
npx shadcn@latest add https://lab.xevrion.dev/r/pull-cord-switch.json
Files
  • src/lab/components/pull-cord-switch.tsx
  • src/lib/use-reduced-motion.ts
  • src/lib/cn.ts
Source
https://github.com/xevrion/ui-lab

Categories

More from UI Lab