Section

The Section component defines a semantic page region with optional padding and surface tone.

Usage & Examples

Muted Page Section

Release notesReview the latest product improvements.
muted-page-section.tsx
<Section tone="muted" padded>
  <Stack gap="sm">
    <strong>Release notes</strong>
    <span>Review the latest product improvements.</span>
  </Stack>
</Section>

Props API

10 props
Columns
Section props API
Default
Description
alignLayoutAlignNoprops—Align prop for LayoutPrimitive.
asElementTypeNoprops—As prop for LayoutPrimitive.
childrenReactNodeNoprops—Content rendered inside the component.
classNamestringNostyling—Additional CSS class names for the component root.
data-testidstringNotesting—Test id used to identify the component in tests.
gapLayoutGapNoprops"md"Gap.
justifyLayoutJustifyNoprops—Justify prop for LayoutPrimitive.
paddedbooleanNopropsfalsePadded prop for Section.
testIdstringNoprops—Test id used to identify the component in tests.
tone"default" | "muted" | "transparent"Noprops"default"Tone.