Skip to content

Feedback

Badge

Also calledstatus badgecount badgestatus pill

A compact label that communicates a status, category, or count beside another item.

How people describe it

  • “small pill with a status word inside”
  • “tiny number next to a label”
  • “little colored tag saying new or pending”

Good for

  • Unread message counts
  • Short status labels on cards

Don’t mix it up with

  • Performs an action; a badge usually just communicates information.

What your library calls it

LIBRARYCALLS IT
shadcn/uiBadge

Accessibility checklist

  • Express status in text as well as color
  • Keep text contrast at least 4.5:1
  • Use a real button or link only if the badge is interactive

Try it

New

Badges label status or counts

Turn on Removable to try the × button.

Prompt

Add a badge showing a short status label without relying on color alone.

~18 estimated prompt tokensDetailed: ~65 estimated prompt tokens

Rough estimate for prompt text only; actual counts vary by model and context.

<p>Application status: <span style="border:1px solid currentColor; border-radius:999px; padding:2px 8px; font-weight:bold">Pending</span></p>

Used in

Explore website blueprints that use this component.