Join our Discord Community
Badge/Destructive

React Badge with Link

A clickable destructive badge with link for navigating to error details or problem resolution pages

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Destructive badges that do something beat static red labels. This React badge wraps a link in shadcn/ui's destructive variant for clickable error indicators. Built with hover underline for affordance, the linked badge invites users to investigate problems and find solutions. Perfect for error counts linking to logs, failed status linking to retry pages, critical alerts linking to details, or any urgent indicator where users need more context—makes problems actionable instead of just visible.

Loading preview...

Pattern created by @haydenbleasel

Installation

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

Questions you might have