Row & Column
Atom
The layout primitives. Row lays children out horizontally, Column vertically. Both own arrangement through semantic boolean axes, a gap scale (flush / tight / snug / cozy / relaxed / loose), main-axis distribution (center, between, …), cross-axis alignment (alignCenter, baseline, …), and wrap / fill / grow / shrink, so a call site never hand-rolls flexDirection, gap, or alignItems.
Playground
Every control sets a real prop of FlexProps. The JSX below updates as you go.
Web
iOS
Android
JSX · FlexProps
Variants
9 examples from src/atoms/layout/layout.md, each rendered live from its own JSX.
Anatomy
1
Container
2
Child
Dimmed parts appear only in some states or variants.
Props
61 props on FlexProps, grouped as they are declared in source. Required props are marked *.
Accessibility and keyboard
Keyboard
Not focusable. It has no interaction of its own and takes the semantics of what it wraps.
Semantics
No role of its own in source; it reads as the content it renders.
Platform skins
The playground's props on each platform: same tree, native shapes, type and touch sizes.
Usage
The Argus reference adds intermediate spacing steps without rounding its layout: fine 3, dense 5, compact 6, close 7, nested 9, comfortable 10, balanced 11, roomy 14, airy 18, spacious 20, generous 22, section 26, panel 28, page 30, apart 32 (the space between the side-by-side panels of one composition), ample 40 (between a section page's hero and the body under it, and between the hero's halves) and broad 48 (between the two halves of a page-wide split). Existing named steps keep their values. Larger active steps take precedence.
ample (40) is the step between a section page's hero and the body under it, and between the hero's halves (the Canvas v4 section pages). chapter (64) is the widest step: the space between a page's chapters, the major sections of a long page (a component detail page's Playground, Props and Examples). It wins over every other gap step, so the precedence runs chapter > broad > ample > apart > page > panel > section > loose and on down the scale to flush. Row, Column and Grid all take them.
Tokens
Read from the playground render. Values follow the scheme and the ion hue.
--fd
--fm
--ft
--ion-ring
--ion-soft
--ion-tx
--ln2