sdxc

Type to search, or start from one of these:

layout

grid-row

Applies grid-row, placing or spanning a grid item along the block axis.

import { gridRow } from "@sdxc/u/layout";

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.gridRow(2)css({ gridRow: 2 })
u.gridRow("span 3")css({ gridRow: "span 3" })
u.gridRow("1 / -1")css({ gridRow: "1 / -1" })
u.gridRow("header-start / header-end")css({ gridRow: "header-start / header-end" })

Using a custom value

Every scale argument also takes a raw CSS value, which passes through untouched.

u.gridRow("2.75rem")

Applying on a state

Wrap the call in a state utility to scope it to one selector.

u.hover(u.gridRow(2))

Responsive design

Wrap the call in a container query to scope it to one width.

u.at("md", u.gridRow(2))

Signature

u.gridRow(value: GridLineValue)