Skip to content
nexubDesign System
v11.9.0

Components · Layout

Section

StableAdded v0.0.1

A full-width page band with vertical padding and a background tone; put a `Container` inside.

import { Section } from '@nexub/react';
View as Markdown

Playground

Props

paddingY

tone="default"

tone="subtle"

tone="muted"

tone="inverse"

TSX
<Section key={tone} tone={tone} aria-label={`${tone} tone`} paddingY="sm">…</Section>

Examples

Tones

tone="default"

tone="subtle"

tone="muted"

tone="inverse"

States

  • tone="default"

    tone="subtle"

    tone="muted"

    tone="inverse"

    default
  • tone="default"

    tone="subtle"

    tone="muted"

    tone="inverse"

    tone="subtle"
  • tone="default"

    tone="subtle"

    tone="muted"

    tone="inverse"

    tone="default"
  • tone="default"

    tone="subtle"

    tone="muted"

    tone="inverse"

    tone="muted"
  • tone="default"

    tone="subtle"

    tone="muted"

    tone="inverse"

    tone="inverse"

Props

Props
PropTypeDefaultDescription
paddingY'sm' | 'md' | 'lg''md'Vertical padding: 48, 80 or 128 px.
tone'subtle' | 'default' | 'muted' | 'inverse''default'Background: the surface, two container tints, or the inverse surface.
asChildbooleanfalseApply the classes to the child element instead of a <section>.

Accessibility

Notes

  • A `<section>` is a region landmark only when it has an accessible name: give it `aria-labelledby` pointing at its heading.

On iOS & Android