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.

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

NameDefaultDescription
columns
keyof typeof COLUMNS | readonly Track[]
rows
keyof typeof ROWS | readonly Track[]
gap
SpacingStep
clip
boolean
false
padding
SpacingStep
paddingInline
SpacingStep
paddingBlock
SpacingStep
paddingInlineStart
SpacingStep
paddingInlineEnd
SpacingStep
paddingBlockStart
SpacingStep
paddingBlockEnd
SpacingStep

It also takes the attributes of the HTML element it renders.

Weigh Grid against these before you choose.

Read this page as Markdown

Search ARK

Find a page, a primitive or a component.