Component Regions

data-layout="regions" stacks a header / content / footer column on any element: the <header> (or [slot="header"]) first, the <footer> (or [slot="footer"]) last, and every other child in between in DOM order. Semantic children place themselves without explicit layout attributes.

Basic Regions

A <section> with data-layout="regions". The <header>, <section>, and <footer> children take their regions; the section grows to fill any spare height.

data-layout="regions"
Card Header

This section content auto-places into the content grid area. No explicit placement needed.

Regions on Article

Works on any element. An <article> with regions is a natural fit for blog posts, cards, and content blocks.

article with regions
Getting Started with Grid Identity

The grid identity system lets semantic HTML elements auto-register to grid areas based on their element type.

HTML declares structure, CSS assigns layout.

Implicit Content Placement

Children that are not a header or footer region sit between them in DOM order — several bare elements stack, they never overlap. With no <section>, the footer is pinned to the bottom.

implicit content (bare <p> children)
Notification

This bare paragraph sits between the header and footer without needing a <section> wrapper.

A second bare paragraph stacks below it.

Grid of Region Cards

The big win: data-layout="grid" wrapping data-layout="regions" articles. Each card auto-places its header, content, and footer without any explicit layout attributes on children.

grid + regions = card list
Performance

Optimized for speed with lazy loading and tree-shaking built in.

Core feature
Accessibility

WCAG 2.1 AA compliant with semantic HTML and ARIA support.

Built-in
Theming

CSS custom properties for full design token control.

Customizable
Responsive

Container queries and fluid layouts adapt to any viewport.

Regions vs layout-card

data-layout="regions" is structural only (placement and gap). <layout-card> adds visual chrome (borders, shadows, padding) on top of a similar header / content / footer structure.

structural vs visual

Regions (structure only)

Card Title

Content goes here. No visual styling from the layout.

Footer text

layout-card (structure + visuals)

Card Title

Content goes here. Visual chrome comes from the component.