// Generated by scripts/generate-showcase.mjs. Do not edit directly. page TypographyDetail { layout = "showcase" state playground_size = ctx.url.searchParams.get("pg_size") ?? "default" state playground_color = ctx.url.searchParams.get("pg_color") ?? "primary" state playground_columns = Number(ctx.url.searchParams.get("pg_columns") ?? "2") state playground_gap = ctx.url.searchParams.get("pg_gap") ?? "md" state playground_maxWidth = ctx.url.searchParams.get("pg_maxWidth") ?? "xl" state playground_class = ctx.url.searchParams.get("pg_class") ?? "showcase-instance showcase-instance--1" seo { title = "Typography" description = "Apply consistent readable responsive typography, widths, columns, spacing, and editorial hierarchy." } view {
Layout component

Typography

Apply consistent readable responsive typography, widths, columns, spacing, and editorial hierarchy.

6 props1 slots0 outputsTheme readyResponsive
Interactive playground

Configure Typography

Change any prop and inspect the server-rendered component immediately.

Live preview

Readable page content

Typography creates consistent hierarchy and comfortable reading rhythm.

  • Clear headings
  • Readable paragraphs
  • Consistent lists
Component code
<Typography>
  <div class="showcase-slot"><span class="icon-[lucide--layers-3] size-4" aria-hidden="true"></span><span>Composable content area.</span></div>
</Typography>
Component props6 controls
Live examples

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Recommended

Readable content typography

Apply consistent typography to headings, paragraphs, lists, and inline content.

01
Live preview

Readable page content

Typography creates consistent hierarchy and comfortable reading rhythm.

  • Clear headings
  • Readable paragraphs
  • Consistent lists
Component usage.wrn
<Typography>
  <div class="showcase-typography"><h2>Readable page content</h2><p>Typography creates consistent hierarchy and comfortable reading rhythm.</p><ul><li>Clear headings</li><li>Readable paragraphs</li><li>Consistent lists</li></ul></div>
</Typography>
Compact

Compact documentation typography

Use reduced spacing in reference pages and dense product help.

02
Live preview

Compact reference

Focused content with reduced spacing.

Component usage.wrn
<Typography
  size="compact"
  maxWidth="compact">
  <div class="showcase-typography"><h3>Compact reference</h3><p>Focused content with reduced spacing.</p></div>
</Typography>
Advanced

Wide editorial typography

Use wider content and multiple columns for editorial or policy content.

03
Live preview

Long-form public information

Structured editorial content can use a wider two-column layout on large screens.

Responsive behavior returns content to one column on smaller screens.

Component usage.wrn
<Typography
  size="spacious"
  gap="xl"
  maxWidth="wide">
  <div class="showcase-typography"><h2>Long-form public information</h2><p>Structured editorial content can use a wider two-column layout on large screens.</p><p>Responsive behavior returns content to one column on smaller screens.</p></div>
</Typography>
Component API

Props and configuration

All content and behavior shown above is supplied through these props and slots.

PropTypeDefaultRequired
sizestring"default"No
colorstring"primary"No
columnsnumber2No
gapstring"md"No
maxWidthstring"xl"No
classstring""No
} }