Skip to content
SENVENLI UI

Grid

Equal columns, fixed or auto-fit to a minimum width, with a token gap.
Auto-fit columns
import { Grid } from "@senvenli/react/layout";

Examples

Fixed columns

A set number of equal columns at every width.

Guidelines

When to use it

  • Tiles or cards in columns.

Use something else when

  • Children stack in one column or row. Stack
  • Two or three panes need different widths. Split

Accessibility

Built in

  • Layout only; no role.

API reference

Grid

padding
Space
paddingInline
Space
paddingBlock
Space
background
Background
radius
Radius
shadow
Shadow
border
Border
as
LayoutElementDefault "div"
space
Space
columns
1 | 4 | 2 | 3 | 5 | 6
minColumnWidth
number

Auto-fit columns no narrower than this many pixels (never wider than the grid itself), as many as fit. The one length a layout prop takes.

Also takes 375 standard DOM and ARIA attributes (id, aria-label, event handlers…).