1 viewer
Back to Components
Component · Layout

Section

Semantic <section> grouping primitive. Accepts a `variant` prop that emits a BEM modifier class (e.g. primitive-section--hero) so recipes can compose section-level layouts without dedicated renderers.

Category
Layout
Slots
3
States
0
Writer
Shared
cre8.primitive.section

Preview

Live renderShared SSR + WASM writers

Domain Section

A semantic section grouping related components.

<Section title="Domain Section" variant="card">
  <Text text="A semantic section grouping related components." variant="p" />
</Section>

Anatomy

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

SlotDOM class
root.primitive-section
header.primitive-section__header
title.primitive-section__title
3 rows

States and platforms

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

States
No published states
Platforms
webnativeruntime-node
Recipes
unstyledruntime-console

Renderers

Shared writer
Section 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.