Join our Discord Community
Badge/Destructive

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.

Loading preview...

Pattern created by @haydenbleasel

Installation

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

Questions you might have