Semantic article
The selected element determines the document semantics.
A semantic vertical region with responsive spacing and padding.
Section creates a semantic vertical region with responsive internal rhythm. It renders a native section by default and remains visually neutral until the consumer adds surface styles.
Review the latest workspace posture and outstanding findings.
import { Section } from "@zentara-co/zenos-ui";gap, padding, paddingX, and paddingY use the shared responsive spacing scale. Specific axis props can refine the general padding value.
Inline and block padding grow independently at md.
The selected element determines the document semantics.
A section should usually have an accessible heading. When the region is purely structural and has no heading, use as="div" or another element that matches its role.
| Prop | Type | Default | Description |
|---|---|---|---|
as | ElementType | section | Rendered semantic element. |
gap | Responsive<Spacing> | — | Space between section children. |
padding / paddingX / paddingY | Responsive<Spacing> | — | Responsive section padding. |
native props | React.HTMLAttributes<HTMLElement> | — | Forwards native attributes, events, aria-*, data-*, className, style, and ref. |
Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props,
including className, style, aria-*, and data-*.
Native section elements become useful landmarks when they have an accessible name, commonly through a visible heading and aria-labelledby. Avoid creating many unnamed section landmarks solely for spacing.