Standard content section
Create predictable vertical rhythm around a page section.
<Section
id="standard-section">
<div class="showcase-content-block">Standard section content</div>
</Section>
// 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 {
Create a responsive themed page section with controlled spacing, width, borders, and surface treatment. Change any prop and inspect the server-rendered component immediately.Section
Configure Section
<Section>
<div class="showcase-slot"><span class="icon-[lucide--layers-3] size-4" aria-hidden="true"></span><span>Composable content area.</span></div>
</Section>
Compare configurations and resize the browser to check responsive behavior.
Create predictable vertical rhythm around a page section.
<Section
id="standard-section">
<div class="showcase-content-block">Standard section content</div>
</Section>
Reduce spacing for dense application screens and grouped dashboard content.
<Section
id="compact-section"
size="sm"
variant="soft"
spacing="sm"
maxWidth="wide">
<div class="showcase-content-block">Compact dashboard content</div>
</Section>
Use a full-width background while retaining a structured content area.
<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>
All content and behavior shown above is supplied through these props and slots.
| Prop | Type | Default | Required |
|---|---|---|---|
id | string | "" | No |
size | string | "default" | No |
color | string | "primary" | No |
variant | string | "default" | No |
spacing | string | "lg" | No |
maxWidth | string | "xl" | No |
fullWidth | boolean | false | No |
borderTop | boolean | false | No |
borderBottom | boolean | false | No |
class | string | "" | No |