1 viewer
Back to Components
Component · Content

Badge

Short status or taxonomy label.

Category
Content
Slots
1
States
5
Writer
Shared
cre8.primitive.badge

Preview

Live renderShared SSR + WASM writers
OperationalIn ProgressDegradedL1 ProofDefault
<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

States and intents
NeutralActiveVerifiedAttentionRejected

Anatomy

The named parts of the rendered markup. Recipes style these hooks, and every renderer keeps them stable.

SlotDOM class
root.primitive-badge
1 row
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
infosuccesswarningerrorneutral
Platforms
webnativeruntime-node
Recipes
unstyledruntime-console

Renderers

Shared writer
Badge renders through the one writer the server and the WASM DOM share, so both emit the same markup.

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.

TargetRendererStatus
webreactexperimental
runtime-nodeview-nodeready
ssrhtml-semanticready
terminalterminal-textplanned
nativenative-adapterexperimental
5 rows

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.