Section
cre8.primitive.sectionSemantic <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
Preview
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>
Props
The inputs the shared writer reads. `data-*` and `aria-*` attributes pass through and are not listed.
| Prop | Type | Required | Default | Also written |
|---|---|---|---|---|
| backgroundImage | text | Optional | — | — |
| bare | bool | Optional | — | — |
| className | text | Optional | — | — |
| columns | number | Optional | 3 | — |
| controlKey | text | Optional | — | — |
| element | section | div | header | footer | nav | aside | main | fieldset | legend | ul | ol | li | template | details | summary | figure | figcaption | label | article | Optional | section | — |
| for | text | Optional | — | — |
| heroTint | text | Optional | — | — |
| hidden | bool | Optional | — | — |
| id | text | Optional | — | — |
| inert | bool | Optional | — | — |
| open | bool | Optional | — | — |
| role | text | Optional | — | — |
| style | json | Optional | — | — |
| tabIndex | number | Optional | — | — |
| title | text | Optional | — | — |
| titleClassName | text | Optional | — | — |
| variant | text | Optional | — | — |
Anatomy
The named parts of the rendered markup. Recipes style these hooks, and every renderer keeps them stable.
| Slot | DOM class |
|---|---|
| root | .primitive-section |
| header | .primitive-section__header |
| title | .primitive-section__title |
States and platforms
The states the contract publishes, the platforms it declares, and the style recipes that dress it.
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-layout | 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.