Layout
Flexbox primitives for building page structure
npx rootnative add layout
Box — Spacing & Background
Box with large padding and themed background.
Box — Directional Padding (pt / pb / ps / pe)
pt=xs · pb=lg · ps=xl · pe=xs — start/end are logical, so they flip when you toggle RTL from the app bar.
Box — Margins (mx / my / mt / mb / ms / me)
mt=xs · mb=lg · ms=xl · me=sm
Row — rowGap vs columnGap
Tight columnGap, generous rowGap — visible once the items wrap.
Row — Inverted
Source order is A, B, C — inverted renders it C, B, A.
Column — Inverted
Source order is 1, 2, 3 — inverted stacks it bottom-up.
Grid — Responsive Columns
Container
This screen sits in a Container with the expanded width, so the column stops at 840dp on a wide window. A style can narrow one Container further.