Badge
Badges communicate a short status or category with text and optional color emphasis.
When to use a badge
Section titled “When to use a badge”Use a badge for a short status or category that benefits from being easy to scan alongside other content. A badge adds emphasis to the text it contains; it does not replace a fuller explanation when one is needed.
For example, “Ready” can summarize the state of a project in a list, while the surrounding page supplies any details and actions.
Content
Section titled “Content”Choose concise, meaningful words that make sense without color. Prefer a specific status such as “Ready” or “Attention” to a label that requires the reader to infer its meaning from the surrounding interface. Keep the label supplied in the default slot.
Choosing a tone
Section titled “Choosing a tone”| Tone | Intended use |
|---|---|
neutral |
Ordinary labels and statuses without additional emphasis. This is the default. |
accent |
A label that needs emphasis in its context. |
critical |
Text describing a critical state. |
Color supplements the status text. Do not rely on the tone alone to convey meaning.
Behavior
Section titled “Behavior”A badge is passive text, not an action. It does not receive keyboard focus, supply a form value, or emit a change event. Use an application-owned control when a person needs to take an action.
If a status changes and needs to be announced, the application must provide an appropriate live region. The badge itself does not announce changes automatically. See the accessibility guidance and specs/badge.yaml.