Knit UI
GitHub

Playground

Loading playground…

Playground
<Stack
  gap="$md"
  align="stretch"
  justify="flex-start"
/>

Examples

Align Variants

Every align value side by side so cross-axis alignment differences are visible.

Loading example…

Align VariantsSourceStorybook

Justify Variants

Every justify value in a fixed-height container so main-axis distribution is visible.

Loading example…

Justify VariantsSourceStorybook

Gap Sizes

Gap tokens from xxs to xxl — spacing between children grows with each step.

Loading example…

Gap SizesSourceStorybook

Centered

Centred layout — both align and justify set to "center" for a vertically and horizontally centred card-like pattern.

Loading example…

CenteredSourceStorybook

Nested

Deeply nested Stacks illustrate how gap and alignment compose across levels.

Loading example…

NestedSourceStorybook

Form Layout

A realistic form layout — stacked labels and inputs with a consistent gap.

Loading example…

Form LayoutSourceStorybook

Props

PropTypeDefaultDescription
disabled systemboolean | undefined
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.