Launch sale — 60% off Pro
Contact
BadgeDestructive

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

React Badge with Icon on Left

A destructive badge with left-aligned icon for visually enhanced error states and critical warnings

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Icons make badges scannable at a glance. This React badge combines shadcn/ui's destructive variant with a Lucide React icon positioned left of text for instant visual recognition. Built with mr-1 spacing and size-3 icon scaling, the pattern balances icon and text legibly. Perfect for error types with symbols (X for failed, Alert for critical, Ban for blocked), status categories needing quick identification, or any urgent indicator benefiting from iconic reinforcement—users process icons faster than text alone.

Badge

Pattern created by @haydenbleasel

Installation

Questions you might have