Dev Design Library

Star Button

Spins once and throws off tiny sparks when starred, then rolls the count.

Star Button preview
Library
UI Lab
Framework
React
Type
component
License
MIT
Install
npx shadcn@latest add https://lab.xevrion.dev/r/star-button.json
Files
  • src/lab/components/star-button.tsx
  • src/lib/use-reduced-motion.ts
  • src/lib/cn.ts
  • src/lab/preview-play.ts
Source
https://github.com/xevrion/ui-lab

Categories

More from UI Lab