Knit UI
GitHub

Playground

Loading playground…

false
true
Playground
<Group
  gap="$md"
  align="center"
  justify="flex-start"
  wrap="wrap"
  grow={false}
  preventGrowOverflow
/>

Examples

Default

Default horizontal layout with the standard gap between items.

Loading example…

DefaultSourceStorybook

Justify Variants

All justify values side by side — shows how main-axis alignment behaves.

Loading example…

Justify VariantsSourceStorybook

Grow

grow makes every child share the row equally — useful for full-width button rows.

Loading example…

GrowSourceStorybook

Mixed Content

Mixed content types — icons, text badges and buttons can share a Group row.

Loading example…

Mixed ContentSourceStorybook

No Wrap

wrap="nowrap" keeps children on a single line even when space is tight.

Loading example…

No WrapSourceStorybook

Gap Sizes

Different gap sizes — from tight $xs to spacious $xl.

Loading example…

Gap SizesSourceStorybook

Props

PropTypeDefaultDescription
disabled systemboolean | undefined
growboolean | undefinedfalseEach child grows to fill the row equally.
preventGrowOverflowboolean | undefinedtrueCap each grown child to an equal fraction of the row width.
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 501 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.