Grid
Lays its children out in rows and columns at once, with spacing from the scale. Use it when items align in two directions, such as a form of labels and fields or a grid of cards.
React
Ready
Figma
Import
import { Grid } from "@kela-systems/ui-components";This page has no live example yet. Storybook shows Grid in every state and theme.
Props
Grid
| Name | Default | Description |
|---|---|---|
columnskeyof typeof COLUMNS | readonly Track[] | ||
rowskeyof typeof ROWS | readonly Track[] | ||
gapSpacingStep | ||
clipboolean | false | |
paddingSpacingStep | ||
paddingInlineSpacingStep | ||
paddingBlockSpacingStep | ||
paddingInlineStartSpacingStep | ||
paddingInlineEndSpacingStep | ||
paddingBlockStartSpacingStep | ||
paddingBlockEndSpacingStep |
It also takes the attributes of the HTML element it renders.
Related
Weigh Grid against these before you choose.