Join our Discord Community
Badge/Standard

React Circular Badge with Count

A circular badge displaying a number for notification counts, unread items, or quantity indicators

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Round number badges grab attention differently than text badges—3 unread, 5 notifications, 12 pending. This React badge uses rounded-full with size-6 and flex items-center justify-center for perfect circular dimensions displaying counts. Built with shadcn/ui, it's optimized for single-digit to double-digit numbers. Perfect for notification indicators, unread message counts, cart item quantities, or pending task badges where quantifying items motivates user action.

Loading preview...

Pattern created by @haydenbleasel

Installation

npx shadcn@latest add https://www.shadcn.io/registry/badge-standard-5.json
npx shadcn@latest add https://www.shadcn.io/registry/badge-standard-5.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/badge-standard-5.json
bunx shadcn@latest add https://www.shadcn.io/registry/badge-standard-5.json

Questions you might have