1 viewer
Back to Components
Component · Layout

AttentionScope

Inert SSR wrapper that marks a view region for opt-in attention aggregation.

Category
Layout
Slots
2
States
3
Writer
Shared
cre8.primitive.attention-scope

Preview

Live renderShared SSR + WASM writers

Content inside the canonical attention wrapper.

<AttentionScope
  attentionKind="view"
  label="Component attention scope"
  mode="aggregate"
  target="view.components.AttentionScope"
  targetKind="view"
>
  <Text text="Content inside the canonical attention wrapper." variant="p" />
</AttentionScope>

Anatomy

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

SlotDOM class
root.primitive-attention-scope
body—
2 rows
State attribute
data-cre8-attention-scopefrom the enabled prop
Hydration markers
data-cre8-attention-scope

States and platforms

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

States
trackingflushederror
Platforms
webnativeruntime-node
Recipes
unstyledruntime-console

Renderers

Shared writer
AttentionScope 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-layoutplanned
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.