// Generated by scripts/generate-showcase.mjs. Do not edit directly. page SectionHeaderDetail { layout = "showcase" state playground_id = ctx.url.searchParams.get("pg_id") ?? "" state playground_eyebrow = ctx.url.searchParams.get("pg_eyebrow") ?? "" state playground_title = ctx.url.searchParams.get("pg_title") ?? "Section Header example" state playground_description = ctx.url.searchParams.get("pg_description") ?? "A polished default section header for a modern application." state playground_align = ctx.url.searchParams.get("pg_align") ?? "start" state playground_size = ctx.url.searchParams.get("pg_size") ?? "default" state playground_color = ctx.url.searchParams.get("pg_color") ?? "primary" state playground_headingLevel = Number(ctx.url.searchParams.get("pg_headingLevel") ?? "2") state playground_maxWidth = ctx.url.searchParams.get("pg_maxWidth") ?? "3xl" state playground_class = ctx.url.searchParams.get("pg_class") ?? "showcase-instance showcase-instance--1" seo { title = "Section Header" description = "Introduce a section with an eyebrow, title, description, alignment, and responsive heading hierarchy." } view {
Layout component

Section Header

Introduce a section with an eyebrow, title, description, alignment, and responsive heading hierarchy.

10 props3 slots0 outputsTheme readyResponsive
Interactive playground

Configure Section Header

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

Live preview
Component code
<SectionHeader
  title="Section Header example"
  description="A polished default section header for a modern application."
  align="start">
  <div data-slot="icon">
    <div class="showcase-slot">icon slot</div>
  </div>
  <div data-slot="actions">
    <div class="showcase-slot">actions slot</div>
  </div>
</SectionHeader>
Component props10 controls
Live examples

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Recommended

Left-aligned section header

Introduce features, services, content groups, or dashboard areas.

01
Live preview
Component usage.wrn
<SectionHeader
  eyebrow="Public services"
  title="Everything citizens need"
  description="Discover online services, directories, guidance, and verified public information.">
  <div data-slot="icon">
    <div class="showcase-slot">icon slot</div>
  </div>
  <div data-slot="actions">
    <div class="showcase-slot">actions slot</div>
  </div>
</SectionHeader>
Compact

Centered section header

Use centered hierarchy above feature grids, testimonials, and campaign content.

02
Live preview
Component usage.wrn
<SectionHeader
  eyebrow="Capabilities"
  title="A consistent component system"
  description="Compose complete pages without rebuilding spacing and typography."
  align="center"
  size="compact">
  <div data-slot="icon">
    <div class="showcase-slot">icon slot</div>
  </div>
  <div data-slot="actions">
    <div class="showcase-slot">actions slot</div>
  </div>
</SectionHeader>
Advanced

Large editorial header

Use a larger heading for major landing-page sections and product storytelling.

03
Live preview
Component usage.wrn
<SectionHeader
  eyebrow="Platform"
  title="Designed for complex public and enterprise interfaces"
  description="Theme-aware, responsive, accessible, and server-rendered."
  size="large"
  maxWidth="full">
  <div data-slot="icon">
    <div class="showcase-slot">icon slot</div>
  </div>
  <div data-slot="actions">
    <div class="showcase-slot">actions slot</div>
  </div>
</SectionHeader>
Component API

Props and configuration

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

PropTypeDefaultRequired
idstring""No
eyebrowstring""No
titlestring""No
descriptionstring""No
alignstring"left"No
sizestring"default"No
colorstring"primary"No
headingLevelnumber2No
maxWidthstring"3xl"No
classstring""No
} }