# 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.

Package: `@kela-systems/ui-components` 4.1.0

```tsx
import { Grid } from "@kela-systems/ui-components";
```

Links (Kela sign-in needed): [Storybook](https://main--6af1efd9453270bb59a6c00c.chromatic.com/?path=/docs/layout-grid--docs), [Source](https://github.com/Kela-Systems/kela/tree/main/packages/next/ui-components/src/layout)

## Props

A `className` on a part adds layout only: placement, sizing and spacing. Pick a look with a variant.

### Grid

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `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` |  |  |

Also takes the attributes of the HTML element it renders.

## Related

- [Stack](https://ark.kela.design/product/components/stack.md)
