Launch sale — 60% off Pro
Contact
BadgeSecondary

Not affiliated with official shadcn/ui. Visit ui.shadcn.com for official docs.

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.

Badge

Pattern created by @haydenbleasel

Installation

Questions you might have