Section
Page sections with consistent vertical rhythm, background tones and a header with eyebrow, title, description and actions.
Platform
Ship from a pull request
Everything between git push and production, without a pipeline to maintain.
Preview deploys
A URL for every branch, torn down on merge.
Edge caching
Static output served from 30 regions.
Rollbacks
Back to any previous build in one click.
Installation
pnpm dlx nachui add sectionAnatomy
Section renders a section with vertical padding from size and a tone from background. By default it wraps its children in a Container, so the background runs edge to edge while the content stays on the page grid. Pass contained={false} to lay the content out yourself, or a container size such as "md" to narrow it. The header parts give every section on a landing page the same hierarchy.Composition
Examples
Default
Platform
Ship from a pull request
Everything between git push and production, without a pipeline to maintain.
Preview deploys
A URL for every branch, torn down on merge.
Edge caching
Static output served from 30 regions.
Rollbacks
Back to any previous build in one click.
Backgrounds
background="default"
Text and links inherit the right foreground.
background="muted"
Text and links inherit the right foreground.
background="primary"
Text and links inherit the right foreground.
background="inverted"
Text and links inherit the right foreground.
Centered
Header with align="center" and bordered on the section.Pricing
Pay for what you deploy
Free for hobby projects. Usage-based from the first team member, with no seat minimum.
API Reference
Section
| Prop | Type | Default | Description |
|---|---|---|---|
size | 'sm' | 'md' | 'lg' | 'xl' | 'md' | Vertical padding |
background | 'default' | 'muted' | 'card' | 'primary' | 'inverted' | 'default' | Background and matching foreground |
bordered | boolean | false | Top and bottom border |
contained | boolean | ContainerSize | true | Wrap children in a Container, optionally with a size |
as | React.ElementType | 'section' | Element to render |
className | string | - | Additional CSS classes |
Section.Header
| Prop | Type | Default | Description |
|---|---|---|---|
align | 'start' | 'center' | 'start' | Alignment of the header parts |
spacing | 'sm' | 'md' | 'lg' | 'md' | Space below the header |
Section.Title
| Prop | Type | Default | Description |
|---|---|---|---|
as | 'h1' | 'h2' | 'h3' | 'h4' | 'h2' | Heading level |
Section.Eyebrow, Section.Description, Section.Actions
className and the attributes of the element it renders.Found something to improve?
Notice a bug, typo, or missing detail on this page? Help us make the documentation better by opening a GitHub issue.