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

Playground

Every prop, live, and the code it takes.

1
2
3
4
5
6
Columns
Gap
cards.tsx
import { Grid } from "@qeetrix/react";

<Grid columns={3}>…</Grid>

02

Equal columns

columns: one count, 1 to 12, each column the same width; md (12px) apart by default.

1
2
3
4
5
6

03

By window size

One count per window size class: base under 600px, medium from 600, expanded from 840, large from 1200, xlarge from 1600. Resize the window.

1
2
3
4
5
6
7
8

04

A main and a side column

GridItem span: a detail page's main column beside its side column, stacked where it's narrow.

Profile, security and sessions
Recent activity

05

A place of its own

GridItem start: the column a cell starts in, 1 at the start edge.

Columns 2 and 3
Next — GridUsage