N
neokit

Badge

Small status and label indicators. Wraps a <span class="badge"> element. Supports color, variant, and size props.

Default

No color or variant — the base badge style.

Default badge
badge

Sizes

Five sizes: xs, sm, md (default), lg, xl.

All sizes
badge-xsbadge-smbadge-mdbadge-lgbadge-xl

Colors

All eight semantic color tokens, solid (default) variant.

Solid (default) — all colors
neutralprimarysecondaryaccentinfosuccesswarningerror

Variants

Five variants: solid, outline, soft, dash, ghost.

solid
neutralprimarysecondaryaccentinfosuccesswarningerror
outline
neutralprimarysecondaryaccentinfosuccesswarningerror
soft
neutralprimarysecondaryaccentinfosuccesswarningerror
dash
neutralprimarysecondaryaccentinfosuccesswarningerror
ghost
neutralprimarysecondaryaccentinfosuccesswarningerror

Empty (dot) badges

No slot content renders a small status dot. Useful for notification indicators.

Dot badges — all colors, all sizes
xs
sm
md
lg
xl

With icons

SVG icons inline with badge text.

Info / success / warning / error with icons
info success warning error

Badge in text

Badges scale with surrounding text when nested in headings.

Inside headings h1–h4 and paragraph

Heading 1 New

Heading 2 Beta

Heading 3 Hot

Heading 4 WIP

Paragraph text inline with a small badge inside.

Badge in a button

Common notification pattern — button with a counter badge.

Button + badge combos