Layouts

Grid

A grid component.

Grid item placement

Component props

A Grid renders a Box as a child, so it also accepts all Box props.

NameType
displayResponsive<"grid" | "inline-grid" | "none">
columnsResponsive<string>
rowsResponsive<string>
autoFlowResponsive<"row" | "column" | "dense" | "row-dense" | "column-dense">
justifyContentResponsive<"center" | "start" | "end" | "flex-start" | "flex-end" | "left" | "right" | "space-between" | "space-around" | "space-evenly" | "stretch">
justifyItemsResponsive<"center" | "start" | "end" | "flex-start" | "flex-end" | "self-start" | "self-end" | "stretch" | "left" | "right" | "baseline">
alignContentResponsive<"center" | "start" | "end" | "flex-start" | "flex-end" | "baseline" | "space-between" | "space-around" | "space-evenly" | "stretch">
alignItemsResponsive<"center" | "start" | "end" | "flex-start" | "flex-end" | "self-start" | "self-end" | "stretch" | "baseline">
gapResponsive<Spacing>
gapXResponsive<Spacing>
gapYResponsive<Spacing>
asstring
asChildboolean