Skip to content
Playground

Grid Span

Applies responsive row and column spans to a grid child.

GridSpan is the responsive spanning companion to Grid. It lets one child occupy different numbers of columns or rows without taking responsibility for explicit starting lines or alignment.

Main content · 4 of 6 columns

Sidebar · 2 of 6 columns

Full-width footer

TSX
import { Grid, GridSpan } from "@zentara-co/zenos-ui";

Both columns and rows accept a direct value or breakpoint object. Use full to cover the complete explicit grid and auto to return to automatic spanning.

TSX
<Grid columns={{ base: 1, md: 6 }} gap="4">  <GridSpan columns={{ base: 1, md: 4 }}>Main</GridSpan>  <GridSpan columns={{ base: 1, md: 2 }}>Aside</GridSpan>  <GridSpan columns="full">Footer</GridSpan></Grid>

Responsive row span

One track

Two rows

Two columns

Use GridSpan when spans change responsively and automatic placement should choose the start position. Use GridItem when the child needs a fixed starting row or column, fixed spans, or self-alignment.

GridSpan is polymorphic and forwards native props and refs to the selected element.

API

PropTypeDefaultDescription
as ElementType div Rendered semantic element.
columns Responsive<1–12 | full | auto> — Responsive column span.
rows Responsive<1–12 | full | auto> — Responsive row span.
native props React.HTMLAttributes<HTMLElement> — Forwards native attributes, events, aria-*, data-*, className, style, and ref.

Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props, including className, style, aria-*, and data-*.

Spans change visual size without changing semantics. Keep the source order logical and avoid using large spans to imply heading or landmark importance. Choose as based on the content itself.