// Generated by scripts/generate-showcase.mjs. Do not edit directly. page SectionDetail { layout = "showcase" state playground_id = ctx.url.searchParams.get("pg_id") ?? "" state playground_size = ctx.url.searchParams.get("pg_size") ?? "default" state playground_color = ctx.url.searchParams.get("pg_color") ?? "primary" state playground_variant = ctx.url.searchParams.get("pg_variant") ?? "default" state playground_spacing = ctx.url.searchParams.get("pg_spacing") ?? "lg" state playground_maxWidth = ctx.url.searchParams.get("pg_maxWidth") ?? "xl" state playground_fullWidth = (ctx.url.searchParams.get("pg_fullWidth") ?? "false") === "true" state playground_borderTop = (ctx.url.searchParams.get("pg_borderTop") ?? "false") === "true" state playground_borderBottom = (ctx.url.searchParams.get("pg_borderBottom") ?? "false") === "true" state playground_class = ctx.url.searchParams.get("pg_class") ?? "showcase-instance showcase-instance--1" seo { title = "Section" description = "Create a responsive themed page section with controlled spacing, width, borders, and surface treatment." } view {
Layout component

Section

Create a responsive themed page section with controlled spacing, width, borders, and surface treatment.

10 props1 slots0 outputsTheme readyResponsive
Interactive playground

Configure Section

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

Live preview
Standard section content
Component code
<Section>
  <div class="showcase-slot"><span class="icon-[lucide--layers-3] size-4" aria-hidden="true"></span><span>Composable content area.</span></div>
</Section>
Component props10 controls
Live examples

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Recommended

Standard content section

Create predictable vertical rhythm around a page section.

01
Live preview
Standard section content
Component usage.wrn
<Section
  id="standard-section">
  <div class="showcase-content-block">Standard section content</div>
</Section>
Compact

Compact dashboard section

Reduce spacing for dense application screens and grouped dashboard content.

02
Live preview
Compact dashboard content
Component usage.wrn
<Section
  id="compact-section"
  size="sm"
  variant="soft"
  spacing="sm"
  maxWidth="wide">
  <div class="showcase-content-block">Compact dashboard content</div>
</Section>
Advanced

Full-width surface section

Use a full-width background while retaining a structured content area.

03
Live preview
Full-width public page section
Component usage.wrn
<Section
  id="full-section"
  size="lg"
  variant="raised"
  maxWidth="full"
  fullWidth="true"
  borderTop="true"
  borderBottom="true">
  <div class="showcase-content-block">Full-width public page section</div>
</Section>
Component API

Props and configuration

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

PropTypeDefaultRequired
idstring""No
sizestring"default"No
colorstring"primary"No
variantstring"default"No
spacingstring"lg"No
maxWidthstring"xl"No
fullWidthbooleanfalseNo
borderTopbooleanfalseNo
borderBottombooleanfalseNo
classstring""No
} }