Badge
v1.0.1Updated 20 Jul 2026Small pill-shaped label for status, counts, or tags — covering BOTH the MUI Chip role (standalone pill in the full tone × emphasis matrix with leading dot / icon / avatar slots, dismiss button, count + pulse modes) AND t
Preview
Live · 23 stories▸Why this is recommendedlabeltagstatuspill+7
The default, out-of-the-box Badge.
- ✓Status tags (PAID, OVERDUE, DRAFT)
- ✓Counters
- ✓Filter chips
- ✓Filter chips with dismiss
- ✓Live presence indicators
- ✓Notification count on an avatar / icon button
- ✓Unread / online dot on a child
- Tones (neutral / primary / success / warning / danger / info)
- Tiny, inline-friendly
- Tone × emphasis matrix (neutral / primary / success / warning / danger / info × solid / soft / outline / ghost / link)
- Leading dot / icon / avatar slot
- Dismiss (x) button
- Count badge variant
- Pulse animation for "live" status
- Anchored overlay mode (overlay count / dot on a child's corner)
- anchorOrigin: 4 corners (top/bottom × left/right)
- overlap: rectangular / circular (offsets for round vs square children)
- showZero + invisible toggles for the overlay
- ✕Long labels (use Alert)
- ✕Interactive controls (use Button)
Install
Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.
Usage
Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.
Props
emphasisVisual emphasis (how loud)
—toneSemantic tone (what it means)
—leadingLeading slot
—dismissableShow dismiss button
—pulsePulse animation
—countNumeric count (standalone or anchored)
—countCapMax count before showing N+
—dotRender as a dot instead of a count
—anchorChild to overlay the badge on; switches to anchored mode
—anchorOriginWhich corner of the child to anchor to
—overlapOffset preset for square vs round children
—showZeroShow the overlay even when count is 0
—invisibleHide the anchored overlay
—Every tonal component shares the same tone × emphasis API, so the pair looks identical across Button, Badge, Alert and more.