1 viewer
Back to Components
Component · Feedback

Banner

Persistent inline notification bar.

Category
Feedback
Slots
3
States
4
Writer
Shared
cre8.primitive.banner

Preview

Live renderShared SSR + WASM writers
Consensus Epoch Roll
Next epoch transition scheduled in 240 seconds. Validator nodes syncing.
<Banner
  body="Next epoch transition scheduled in 240 seconds. Validator nodes syncing."
  intent="warning"
  title="Consensus Epoch Roll"
/>

Anatomy

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

SlotDOM class
root.primitive-banner
title.primitive-banner__title
body.primitive-banner__body
3 rows
Modifier
primitive-banner--{intent}
State attribute
data-intentfrom the intent prop
Role
status
Role by state
error → alert

States and platforms

The states the contract publishes, the platforms it declares, and the style recipes that dress it.

States
successinfowarningerror
Platforms
webnativeruntime-node
Recipes
unstyledruntime-console

Renderers

Shared writer
Banner 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

Persistent inline notification bar with variant coloring.

  • Informational, success, and warning banners expose status semantics with a polite live region.
  • Error banners upgrade to alert semantics and preserve the announced title/detail relationship.