Join our Discord Community
Badge/Standard

React Badge with Icon on Left

A badge with a Lucide React icon positioned to the left of text for enhanced visual communication

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Icons make badges scannable—star for featured, check for verified, flame for trending. This React badge adds a Lucide React icon with mr-1 spacing before text, using size-3 for proportional sizing. Built with shadcn/ui, the icon provides instant visual context that text alone can't convey as quickly. Perfect for feature status badges, priority indicators, verification markers, or trending content labels where icons communicate meaning faster than reading text.

Loading preview...

Pattern created by @haydenbleasel

Installation

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

Questions you might have