# Components Badge: Icon Badge

A badge that pairs a small icon with a label for instant meaning. Use it to tag categories, statuses, or actions where text alone reads slowly.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/badges/icon-badge
- Collection: [Components](https://www.shadcn-ui-blocks.com/blocks/components), Free tier
- Group: [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/components/badges/icon-badge.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-badges-icon-badge
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/components-badges-icon-badge.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge
- Installs to: `@/components/blocks/components/badges/icon-badge`

## About this block

Icon Badge displays four badge variants side by side in a centered,
wrapping row. Each badge pairs a small icon on the left with a short
label on the right. The four variants shown are default (filled),
secondary (muted), destructive (red), and outline (bordered). The
icons used are a check circle, an info circle, an X circle, and a
warning triangle, each sized to sit flush with the text cap height.

All four variants are independent. You can drop any single one into
your interface, swap the icon for another from the same icon library,
and change the label copy without affecting the others. The wrapping
row layout means you can show two badges or six without rewriting any
structure.

## When to use

Reach for this block when a plain text label reads too slowly and a
small icon can carry the meaning in an instant. In a healthcare
scheduling product this pattern is a natural fit for appointment
status chips: a check for confirmed, a warning for pending, an X for
cancelled, and an info marker for a note attached to the booking. It
works equally well on a table row, inside a card header, or alongside
a patient or provider name wherever the status needs to register at a
glance rather than be read word by word.

A natural flow around it on a Components page:

**Before**

- [Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts) to introduce the same four
  semantic states at section level before narrowing to inline chips
- A plain text label or heading to set the context the badges refine

**After**

- [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards) where the badges appear inside
  individual card headers as status markers
- [Dot Indicator Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/dot-indicator-badge)
  when a colored dot alone is enough and the icon and label would crowd
  a compact layout

## What you can display

The straightforward fit is status labels that carry a clear emotional
signal. A few other ways to use the frame:

- **Appointment or booking states.** Use confirmed, pending, cancelled,
  and info variants to mark every record in a scheduling list without
  adding a legend.
- **Category or tag chips.** Swap the status icons for category glyphs
  such as a stethoscope, calendar, or user, and the label becomes a
  taxonomy chip that sorts content at a glance.
- **Action affordances.** Pair an icon with a short imperative label
  like "Review" or "Approve" to give a badge the feel of a soft button
  inside a dense data table.

> Tip: keep the label to one or two words so the icon and text read as
> a single unit rather than a sentence that happens to have a picture.

## More in Components Badges

- [3D Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/3d-badge)
- [Bounce Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/bounce-badge)
- [Dot Indicator Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/dot-indicator-badge)
- [Elevated Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/elevated-badge)
- [Extra Large Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/extra-large-badge)
- [Gradient Border Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/gradient-border-badge)
- [Hover Scale Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/hover-scale-badge)
- [Large Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/large-badge)
- [Pulse Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/pulse-badge)
- [Ribbon Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/ribbon-badge)
- [Square Badge](https://www.shadcn-ui-blocks.com/blocks/components/badges/square-badge)
