Skip to main content
  1. Docs
  2. Components
  3. Layout

Grid

Equal columns that change with the window's size class, with gaps from the space scale.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<div>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

When to use

Use it for
  • Cards in columns: one on a phone, four on a desktop.
  • A detail page's main and side columns.
Not for
  • A row that wraps by its contentInline
  • Rows of recordsTable

02

Anatomy

  1. 1grid<div>The columns: data-gap, data-align.
  2. 2grid-item<div>A cell that spans or starts where you say.

03

Do and don't

Fewer columns where it's narrow
DoOne column on a phone, more as the window grows.
Don'tFour columns at every size: cards a few words wide.

04

Content

  • A Grid has no words of its own.
  • Size classes, not breakpoints of your own: 600, 840, 1200, 1600.
Next — GridAPI