Section | UI Showcase
WRNexus UI
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