Join our Discord Community
Badge/Standard

React Badge with Link

An interactive badge containing a clickable link for filtering content or navigating to related items

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Sometimes badges need to be more than labels—they need to be gateways. This React badge wraps a link with hover:underline styling, transforming static indicators into clickable filters or navigation. Built with shadcn/ui and standard anchor elements, users can click category badges to see all items in that category or status badges to filter by state. Perfect for blog post tags, product category filters, issue labels in project management, or any context where badges should navigate to filtered views.

Loading preview...

Pattern created by @haydenbleasel

Installation

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

Questions you might have