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
alignLayoutAlignNopropsAlign prop for LayoutPrimitive.
asElementTypeNopropsAs prop for LayoutPrimitive.
childrenReactNodeNopropsContent rendered inside the component.
classNamestringNostylingAdditional CSS class names for the component root.
data-testidstringNotestingTest id used to identify the component in tests.
gapLayoutGapNoprops"md"Gap.
justifyLayoutJustifyNopropsJustify prop for LayoutPrimitive.
paddedbooleanNopropsfalsePadded prop for Section.
testIdstringNopropsTest id used to identify the component in tests.
tone"default" | "muted" | "transparent"Noprops"default"Tone.