Layout
Section
A full-width page band with a surface tone and vertical padding.
import { Container, Section } from "@somewhere-com/ds";
<Section padding="large">
<Container>Content</Container>
</Section>
<Section padding="medium" tone="inverse">
<Container>Dark band</Container>
</Section>
Props
padding:none|small|medium|large(default). That’s 0, 3rem, 5rem, and 8rem vertical, frompadding.section.*. Large drops to 5rem on mobile.tone:default(white) |soft(neutral grey, for alternating bands) |inverse(deep teal, white text, inverse focus ring for every descendant)
Put a Container inside it for the content width.
It renders a <section>. When it’s a meaningful landmark, give it an accessible name, such as aria-labelledby pointing at its heading.
Examples
Rendered from the Storybook stories. To change props and see every state live, open Section in Storybook.
default
soft
inverse
padding="none"
padding="small"
padding="medium"
padding="large"