SingleColumnLayout
A single centered column with a comfortable line length: articles, blogs, forms, mobile pages. On mobile the column spans the full width with side gutters; beyond that it centers and stops at its maximum width.
Usage
Article
vue
<template>
<SuSingleColumnLayout as="article">
<template #header>
<h1>Article title</h1>
<p>Published on October 25 · 4 min read</p>
</template>
<img src="/illustration.jpg" alt="…" />
<p>Article content…</p>
<template #footer>
<AuthorCard />
</template>
</SuSingleColumnLayout>
</template>Widths
prose (default) limits lines to about 65 characters, the recommended reading length. Other widths suit forms (narrow), mixed content (medium, wide) or full width (full).
vue
<SuSingleColumnLayout width="narrow">
<LoginForm />
</SuSingleColumnLayout>API
Props
| Prop | Type | Default | Description |
|---|---|---|---|
width | 'prose' | 'narrow' | 'medium' | 'wide' | 'full' | 'prose' | Maximum width: prose ≈ 65 characters, narrow 36rem, medium 48rem, wide 72rem, full unlimited |
gap | 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'lg' | Gap between header, content and footer |
padded | boolean | true | Side gutters: 16px, then 24px from a 768px container |
as | string | 'div' | Root element (article, main, section…) |
Slots
| Slot | Description |
|---|---|
header | Title, lead, breadcrumb |
default | Main content |
footer | Author, sharing, article navigation |
Responsive behavior
| Container width | Rendering |
|---|---|
| < 768px | Full width, 16px gutters |
| ≥ 768px | 24px gutters, column centered once the container exceeds the maximum width |
The maximum width excludes gutters: a prose column keeps its 65 characters of text.
Accessibility
- Line length:
prosefollows the readability guideline (WCAG 1.4.8, 80 characters at most). - Semantics: pick the root element with
as(articlefor a post,mainfor the page's main content). Theheaderandfooterareas are plain containers: put your own<header>or<footer>in them when needed. - Zoom: no fixed pixel widths, content reflows up to 400% zoom (WCAG 1.4.10).