Join our Discord Community
Badge/Secondary

React Badge with Icon on Left

A secondary badge with left-aligned icon for muted categorization with visual symbols

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Icons in gray badges guide without shouting. This React badge combines shadcn/ui's secondary variant with a Lucide React icon positioned left of text for subtle category identification. Built with mr-1 spacing and size-3 icon scaling in subdued gray styling, the pattern creates scannable categories without overwhelming. Perfect for content types with symbols (Document 📄, Code 💻, Design 🎨), metadata categories needing icons, or any classification where symbols help but prominence would distract—users process icons faster while the muted palette keeps focus on primary content.

Loading preview...

Pattern created by @haydenbleasel

Installation

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

Questions you might have