Skip to content
Somewhere design system

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

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.

Tones

default

soft

inverse

Padding

padding="none"

padding="small"

padding="medium"

padding="large"