Badge

Display inline labels, status indicators, and tags

Badges are small, inline labels used to highlight status, categories, or other metadata. They work well both standalone and inline within text.

Basic Badge

A simple badge with default styling:

Default
<Badge>Default</Badge>

Colors

Badges come in 11 color variants to convey different meanings:

GrayBlueGreenYellowOrangeRedPurple
<Badge color="gray">Gray</Badge>
<Badge color="blue">Blue</Badge>
<Badge color="green">Green</Badge>
<Badge color="yellow">Yellow</Badge>
<Badge color="orange">Orange</Badge>
<Badge color="red">Red</Badge>
<Badge color="purple">Purple</Badge>

Surface Colors

For badges that adapt to the page background:

WhiteSurface
<Badge color="white">White</Badge>
<Badge color="surface">Surface</Badge>

Destructive Colors

For warning or error states:

White DestructiveSurface Destructive
<Badge color="white-destructive">White Destructive</Badge>
<Badge color="surface-destructive">Surface Destructive</Badge>

With Icons

Add icons to make badges more descriptive:

VerifiedFeaturedNewPending
<Badge icon="circle-check" color="green">Verified</Badge>
<Badge icon="star" color="yellow">Featured</Badge>
<Badge icon="bolt" color="purple">New</Badge>
<Badge icon="clock" color="blue">Pending</Badge>

Icon Types

Specify a different icon style using iconType:

SolidRegularDuotoneGitHub
<Badge icon="star" iconType="solid" color="yellow">Solid</Badge>
<Badge icon="star" iconType="regular" color="yellow">Regular</Badge>
<Badge icon="star" iconType="duotone" color="yellow">Duotone</Badge>
<Badge icon="github" iconType="brands" color="gray">GitHub</Badge>

Sizes

Four sizes are available to fit different contexts:

Extra SmallSmallMediumLarge
<Badge size="xs" color="blue">Extra Small</Badge>
<Badge size="sm" color="blue">Small</Badge>
<Badge size="md" color="blue">Medium</Badge>
<Badge size="lg" color="blue">Large</Badge>

Shapes

Choose between rounded corners or pill shape:

RoundedPill
<Badge shape="rounded" color="purple">Rounded</Badge>
<Badge shape="pill" color="purple">Pill</Badge>

Stroke Variant

Use outlined badges for a lighter visual weight:

Outlined BlueOutlined GreenOutlined RedOutlined Purple
<Badge stroke color="blue">Outlined Blue</Badge>
<Badge stroke color="green">Outlined Green</Badge>
<Badge stroke color="red">Outlined Red</Badge>
<Badge stroke color="purple">Outlined Purple</Badge>

Disabled State

Reduce opacity for inactive badges:

InactiveDisabled
<Badge disabled color="gray">Inactive</Badge>
<Badge disabled color="blue">Disabled</Badge>

Inline Usage

Badges work seamlessly within text. This feature requires a Premium subscription. You can also mark items as New or Deprecated.

This feature requires a <Badge color="orange" size="sm">Premium</Badge> subscription.
You can also mark items as <Badge color="green" size="sm">New</Badge> or
<Badge color="red" size="sm">Deprecated</Badge>.

Properties

stringdefault: gray

Color variant: gray, blue, green, yellow, orange, red, purple, white, surface, white-destructive, surface-destructive.

stringdefault: md

Badge size: xs, sm, md, lg.

stringdefault: rounded

Badge shape: rounded, pill.

string

Font Awesome icon name.

string

Icon style: regular, solid, light, thin, sharp-solid, duotone, brands.

booleandefault: false

Display as outlined badge with transparent background.

booleandefault: false

Reduce opacity to indicate inactive state.

string

Additional CSS classes for custom styling.