Skip to main content
WireKit
Copy for LLM

Section

A full-width page section with vertical padding, background color, and optional divider borders. Designed to wrap a Container for structured page layouts.

Basic Usage

Default section with container
Content inside a section

Background Variants

Muted background
Muted section background
Subtle background
Subtle section background
Inverse background
Inverse section with inverted text

Dividers

Add horizontal borders to visually separate sections.

Top divider
Section with top border
Both dividers
Section with top and bottom borders

Padding Sizes

Small padding
Compact section
2XL padding
Spacious section

Props

Prop Type Default Description
padding string 'xl' Vertical padding: none, sm, md, lg, xl, 2xl
background string 'default' Background: default, muted, subtle, inverse, accent
divider string 'none' Border dividers: none, top, bottom, both
as string 'section' HTML element to render
scope string|null null Scoped personalization name

Keyboard Interaction

This component is a layout wrapper. Keyboard interaction is delegated to its children.

Design Tokens

Token Used for
--space-wk-sm through --space-wk-2xl Vertical padding
--color-wk-bg-muted Muted background
--color-wk-bg-subtle Subtle background
--color-wk-bg-inverse Inverse background
--color-wk-text-inverse Inverse text color
--color-wk-accent Accent background
--color-wk-border Divider border color

Was this page helpful?

Voting requires cookies or local storage. What we store