Container | UI Showcase
WRNexus UI
Layout component

Container

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

7 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 props7 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
centeredbooleantrueNo
classstring""No