Skip to content

Tag

  • Layer: Component
  • Base: Custom (no Kobalte equivalent needed)

Pill-shaped. Uses --font-mono for the system-speaking register. The base recipe applies text-transform: uppercase and letter-spacing: 0.14em so every Tag renders in the mono UPPERCASE register described in the brief (audit Section I drift fix).

All variants

confluencearchivedoverdue
VariantUse
defaultPlain metadata. Mono UPPERCASE on --colors-bg-dim.
accentVerified / live / accented metadata. Cyan on --colors-accent-dim.
phenomenonPlane-2 phenomenon callouts. Coloured by --colors-glory.
dangerRetained for backwards compatibility; review per audit Section I.

default · accent · accent+dot · phenomenon+dot · default

0471b3verifiedlive · 00:12rare phenomenonarchived · 2024-11

The optional dot prop renders a glowing 6 px disc before the label, colour-matched to the variant’s currentColor. Use it for live / in-progress / phenomenon states where the tag should feel “lit”.

With onDismiss

aurora · greenaurora · violet

Passing onDismiss turns the Tag into a dismissable chip — a tiny × button appears on the right, with keyboard focus and an aria-label="Remove".

Size comparison

smallmediumsmall defaultmedium default
SizePaddingUse
sm6px x 2pxCompact lists, inline metadata
md8px x 4pxDefault

Click the × to dismiss

jiraconfluenceslacknotes
PropTypeDefaultDescription
variant'default' | 'accent' | 'phenomenon' | 'danger''default'Visual variant
size'sm' | 'md''md'Tag size
dotbooleanfalseRender a glowing status disc before the label
onDismiss() => voidMakes tag dismissible; renders close button
childrenJSX.ElementrequiredTag content
  • Dismiss button has aria-label="Remove"
  • Focus ring on dismiss button via :focus-visible
  • Decorative dot is aria-hidden
TokenWhere
--colors-bg-dimdefault variant fill
--colors-text-secondarydefault variant label
--colors-bg-emphasizeddefault variant hover fill
--colors-accent-dimaccent variant fill
--colors-accentaccent variant label + hover fill (via --colors-accent-glow)
--colors-gloryphenomenon variant label (Plane-2 accent)
--colors-errordanger variant label
--colors-error-dimdanger variant fill
--radii-pillAll variants
--fonts-monoLabel typeface
--shadows-focusFocus ring (dismiss button + pill itself via :focus-visible)