Dev Design Library

Badge Counter

Rolls its digits the way the count moved and bumps each time it changes.

Badge Counter preview
Library
UI Lab
Framework
React
Type
component
License
MIT
Install
npx shadcn@latest add https://lab.xevrion.dev/r/badge-counter.json
Files
  • src/lab/components/badge-counter.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