Badge
Compact status label component with semantic tone colors.
Usage Notes
- Use for status indicators (success / warning / error), classification labels, and count markers.
- Not suitable for long text labels (use
callout) or interactive triggers (usebutton). - Related components:
calloutfor titled message blocks,statfor numeric metrics. - Multiple badges are typically placed inside a
row. - Use
toneonly for semantic state, not as an arbitrary style picker.
Tone variants
namespace: "doc_badge_tone_diff",
layout: {
"row:tones": {
"badge:info": {
label: "info",
tone: "info"
},
"badge:success": {
label: "success",
tone: "success"
},
"badge:warning": {
label: "warning",
tone: "warning"
},
"badge:danger": {
label: "danger",
tone: "danger"
},
"badge:muted": {
label: "muted",
tone: "muted"
}
}
}
}