Production default
Balanced spacing, hierarchy, and content for the most common product workflow.
<Section>
<!-- Add default slot content here -->
</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"
state playground_borderTop = ctx.url.searchParams.get("pg_borderTop") ?? "false"
state playground_borderBottom = ctx.url.searchParams.get("pg_borderBottom") ?? "false"
state playground_class = ctx.url.searchParams.get("pg_class") ?? "showcase-instance showcase-instance--1"
seo {
title = "Section"
description = "Theme-aware page section with consistent spacing, width, background, and border controls."
}
view {
Theme-aware page section with consistent spacing, width, background, and border controls. Change any prop and inspect the server-rendered component immediately.Section
Configure Section
<Section>
<!-- Add default slot content here -->
</Section>
Compare configurations and resize the browser to check responsive behavior.
Balanced spacing, hierarchy, and content for the most common product workflow.
<Section>
<!-- Add default slot content here -->
</Section>
A tighter variation for dashboards, side panels, tables, and operational interfaces.
<Section
size="sm"
variant="secondary">
<!-- Add default slot content here -->
</Section>
A more expressive variation using additional data, stronger emphasis, and optional states.
<Section
size="lg"
variant="success"
fullWidth="true">
<!-- Add default slot content here -->
</Section>
Public events declared by this component. Custom events bubble from the component root and expose state through event.detail.
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 |