Skip to content
Playground

Section

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.

Security overview

Review the latest workspace posture and outstanding findings.

18 resolved4 need review
TSX
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.

Responsive spacing

Inline and block padding grow independently at md.

Semantic article

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.

API

PropTypeDefaultDescription
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.