Skip to content
DisplayBrowse display components
ComponentsDisplayStable

Badge

Small status indicator with semantic colors, soft, outline, and dot variants.

Live preview

PrimaryActiveReviewFailedSoftOutline

Usage

Adapters:React stableVue stable
index.html
<span class="lm-badge lm-badge-success lm-badge-dot">Active</span>
<span class="lm-badge lm-badge-soft">12 new</span>

CSS classes (6)

ClassDescription
lm-badgeBase pill
lm-badge-{variant}primary | secondary | accent | success | warning | danger | info
lm-badge-softMuted primary tint
lm-badge-outlineTransparent with stronger border
lm-badge-dotAdds a leading colored dot
lm-badge-{size}sm | md | lg

React props (3)

PropTypeDefaultDescription
variantVariantdefaultColor scheme
tonesolid | soft | outlinesolidSurface treatment
dotbooleanShow leading dot

Accessibility

  • Always pair color with text — color alone fails A11y.
  • Wrap in role='status' for live regions when content changes.

Spotted something wrong? Edit this entry on GitHub.