Join our Discord Community
Badge/Outline

React Badge with Icon on Right

An outlined badge with right-aligned icon for metadata 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 metadata or outcomes. This React badge places a Lucide React icon after text in shadcn/ui's outline variant for directional flow. Built with ml-1 spacing and size-3 scaling, the pattern suggests supplementary information or state. Perfect for status badges with trailing indicators (Verified ✓), rating systems (4 Stars ★), metadata with icons (Updated ↻), or dismissible tags (React ×), where icon follows logically after text—creates left-to-right reading flow with subtle visual punctuation in outlined styling.

Loading preview...

Pattern created by @haydenbleasel

Installation

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

Questions you might have