Join our Discord Community
Badge/Destructive

React Badge with Icon on Right

A destructive badge with right-aligned icon for error states with trailing visual indicators

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Right-side icons feel like actions or consequences. This React badge places a Lucide React icon after text in shadcn/ui's destructive variant for directional flow. Built with ml-1 spacing and size-3 scaling, the pattern suggests progression or outcome. Perfect for status badges implying next state (Failed →), action indicators (Delete ×), or temporal markers (Expired ⏱), where icon follows logically after text—creates left-to-right reading flow with visual punctuation.

Loading preview...

Pattern created by @haydenbleasel

Installation

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

Questions you might have