<row> is a horizontal auto-layout container — children flow left to right. It is shorthand for <stack direction="horizontal">.
row
taghorizontal auto-layout<row> is a horizontal auto-layout container — children flow left to right. It is shorthand for <stack direction="horizontal">.
w / h absent = hug content; "fill" = fill parent; number = fixed px. gap="auto" distributes space evenly.
| Attr | Type | Description |
|---|---|---|
h | number | 'fill' | Absent = hug children |
fill | fill | |
name | string | |
x | number | |
y | number | |
w | number | 'fill' | Absent = hug children |
gap | gap | Gap between items and (when wrapping) between rows. "16" fixed 16px "auto" space-between (bare attribute = auto) "16 10" 16px items, 10px rows "16 auto" 16px items, rows distributed |
reverse-z | boolean | Reverse z-order of children. Presence = true. |
wrap | boolean | Enable wrapping. Presence = true. |
p | string | number | Padding shorthand. Single value, "v h", or "top right bottom left". Alias: padding |
pt | number | Top padding override |
pr | number | Right padding override |
pb | number | Bottom padding override |
pl | number | Left padding override |
align | stretch top-left top-center top-right middle-left middle-center middle-right bottom-left bottom-center bottom-right baseline | 9-point alignment — direction-independent. Replaces justify + align. Special values: stretch, baseline. Default: top-left. |
fill-style | string | |
effect-style | string | |
radius | number | string | |
corner-smoothing | number | |
border | string | |
border-color | color | token | |
border-width | number | |
border-style | solid dashed dotted | |
border-align | center inside outside | |
shadow | string | |
clip | boolean | |
clip-path | string | |
overflow-x | hidden visible scroll auto | |
overflow-y | hidden visible scroll auto | |
border-image | string | |
outline | string | |
outline-offset | number |
Example
<row w="390" h="56" p="0 16" gap="auto" align="middle-left" fill="#fff"> <text value=".gui" font-size="17" font-weight="600" fill="#1C1C1E" /> <img src="assets/avatar.webp" w="32" h="32" radius="16" fit="cover" /> </row>