Grid | UI Showcase
WRNexus UI
Layout component

Grid

Arrange arbitrary content in a responsive configurable CSS grid with stable columns, gaps, alignment, and width.

7 props1 slots0 outputsTheme readyResponsive
Interactive playground

Configure Grid

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

Live preview
OneTwoThree
Component code
<Grid />
Component props7 controls
Live examples

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Recommended

Responsive three-column grid

Arrange equal-width children with consistent gaps.

01
Live preview
OneTwoThree
Component usage.wrn
<Grid
  columns="3">
  <div class="showcase-grid-items"><span>One</span><span>Two</span><span>Three</span></div>
</Grid>
Compact

Dense four-column grid

Use smaller gaps for dashboards and compact overview pages.

02
Live preview
OneTwoThreeFour
Component usage.wrn
<Grid
  size="compact"
  columns="4"
  gap="sm"
  maxWidth="wide">
  <div class="showcase-grid-items"><span>One</span><span>Two</span><span>Three</span><span>Four</span></div>
</Grid>
Advanced

Full-width two-column grid

Use larger gaps for editorial or marketing split layouts.

03
Live preview
PrimarySecondary
Component usage.wrn
<Grid
  size="spacious"
  gap="xl"
  maxWidth="full">
  <div class="showcase-grid-items"><span>Primary</span><span>Secondary</span></div>
</Grid>
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
minItemWidthstring""No
classstring""No