Knit UI
GitHub

Playground

Loading playground…

false
Playground
<Grid
  columns={12}
  gutter="md"
  grow={false}
/>

Examples

Basic Spans

Classic 12-column span combinations: 12, 6+6, 4+4+4, 3+3+3+3.

Loading example…

Basic SpansSourceStorybook

Gutters

All gutter sizes from xxs to xxl, keeping the column layout identical.

Loading example…

GuttersSourceStorybook

Auto And Content Span

span="auto" fills remaining row space; span="content" shrinks to fit content.

Loading example…

Auto And Content SpanSourceStorybook

Column Offset

offset pushes a column right by N columns without occupying the space.

Loading example…

Column OffsetSourceStorybook

Grow Columns

grow lets shorter last-row columns expand to fill the track.

Loading example…

Grow ColumnsSourceStorybook

Column Alignment

Grid.Col align controls vertical self-alignment within a mixed-height row.

Loading example…

Column AlignmentSourceStorybook

Custom Column Count

Custom columns count — a 24-column grid allows finer-grained layouts.

Loading example…

Custom Column CountSourceStorybook

Props

PropTypeDefaultDescription
columnsnumber | undefined12Total columns the grid is divided into.
disabled systemboolean | undefined
growboolean | undefinedfalseLet columns grow to fill the last row.
gutterGridGutter | undefined
xxs · xs · sm · md · lg · xl · xxl
"md"Space between columns — a space key (xxs–xxl), `$space` token, or px number.
shadow system"xs" | "sm" | "md" | "lg" | "xl" | "xxs" | "xxl" | undefined
theme systemThemeName | null | undefinedApplies a theme to this element
Accessibility & DOM props (2)
PropType
keyKey | null | undefined
refRef<TamaguiElement> | undefined

Plus 500 inherited style props from Box — the full Tamagui/React Native style surface, including token shorthands like p, mx, bg and c. See Tokens for the scales they accept, or the full list.