Components
Components
Badge
Status pill and tag indicator with solid, soft, outline, glass, and live dot variants.
newfree
Install
@hewnui/ui · hewnui
Compact status indicator for tags, metadata, and active counts.
SolidSoftOutlineGlassDot
AccentMutedSuccessWarningDanger
System NormalDeployment PendingHigh Latency
Usage
Variants
solid— Bold filled backgroundsoft— Tinted surface background (default)outline— Bordered outlineglass— Frosted glass material filldot— Status dot indicator with accompanying label
Colors
accent, muted, danger, success, and warning.
Sizes
sm, md (default), and lg.
Accessibility
- Badge renders a plain
<span>with no implicit role, so it is announced as part of the surrounding text rather than as a widget - The
dotvariant's indicator isaria-hidden— the label text has to carry the meaning ("Degraded", not colour alone) - When a badge reflects live state, put it inside a
role="status"region so changes are announced - Pass
aria-labelthrough...propswhen the visible text is an abbreviation ("P1"→"Priority 1")
API reference
Props for Badge from @hewnui/ui/badge. Generated from component types — not hand-written.
Prop
Type