1 viewer
Component · Content
Badge
Short status or taxonomy label.
- Category
- Content
- Slots
- 1
- States
- 5
- Writer
- Shared
Preview
<Row gap="8px"> <Badge intent="success" label="Operational" /> <Badge intent="warning" label="In Progress" /> <Badge intent="error" label="Degraded" /> <Badge intent="info" label="L1 Proof" /> <Badge intent="neutral" label="Default" /> </Row>
Variants
Anatomy
The named parts of the rendered markup. Recipes style these hooks, and every renderer keeps them stable.
| Slot | DOM class |
|---|---|
| root | .primitive-badge |
- Modifier
- primitive-badge--{intent}
- State attribute
- data-intentfrom the intent prop
States and platforms
The states the contract publishes, the platforms it declares, and the style recipes that dress it.
States
Platforms
Recipes
Renderers
Every tag in the example above renders through a shared writer.
Declared adapters. A status is the manifest's declaration, not a measured parity result.
| Target | Renderer | Status |
|---|---|---|
| web | react | experimental |
| runtime-node | view-node | ready |
| ssr | html-semantic | ready |
| terminal | terminal-text | planned |
| native | native-adapter | experimental |
Accessibility
Semantic structure must stay available without visual styling.
- Expose meaningful names for interactive controls.
- Keep keyboard and pointer behavior equivalent where the platform supports it.
- Publish state with native semantics and data attributes where the adapter supports them.