Row
Horizontal flow layout — a flex row with a token-based gap.
Project settings
Usage
import {Row} from 'kinu';
<Row gap="sm" justify="between">
<strong>Title</strong>
<Button>Save</Button>
</Row>
Exports
| Name | Description | Rendered HTML |
|---|---|---|
| Row | Component | <div k="row"> |
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| gap | RowGap |
'sm' | Gap between children, from the spacing scale. |
| align | RowAlign |
'center' | Cross-axis (vertical) alignment of children. |
| justify | RowJustify |
— | Main-axis (horizontal) distribution of children. |
| wrap | boolean |
— | Allow children to wrap onto multiple lines. (Row does not wrap by default — |
reach for Cluster when wrapping is the point.) |
Notes
- CSS-only: renders a
<div k="row">withdisplay:flex. The horizontal sibling ofStack. Zero JavaScript. gap(defaultsm),align(defaultcenter), andjustifymirror the other layout primitives.- Does not wrap by default — pass
wrap, or reach forClusterwhen wrapping is the point.
_Source: src/components/row/index.tsx