// Generated by scripts/generate-showcase.mjs. Do not edit directly. page ContainerDetail { 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 = "Container" description = "Constrain and align page content with responsive gutters and compact, wide, or full width options." } view {
Layout component

Container

Constrain and align page content with responsive gutters and compact, wide, or full width options.

6 props1 slots0 outputsTheme readyResponsive
Interactive playground

Configure Container

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

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

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Recommended

Standard content container

Keep page content aligned to a predictable readable width.

01
Live preview
Centered container content
Component usage.wrn
<Container>
  <div class="showcase-content-block">Centered container content</div>
</Container>
Compact

Compact reading container

Use a smaller maximum width for forms, legal copy, and focused content.

02
Live preview
Compact readable content
Component usage.wrn
<Container
  size="compact"
  maxWidth="compact">
  <div class="showcase-content-block">Compact readable content</div>
</Container>
Advanced

Full-width layout container

Allow dashboards and data-heavy pages to use the available width.

03
Live preview
Full-width dashboard content
Component usage.wrn
<Container
  size="spacious"
  maxWidth="full">
  <div class="showcase-content-block">Full-width dashboard content</div>
</Container>
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
} }