Rows
Renders children horizontally, with consistent spacing (if specified)
between them. Rows can also have a specific height
value.
Usage
Code
import { createSystem } from 'frog/ui'
const { Rows, Row } = createSystem()
function Example() {
return (
<Rows gap="8" grow>
<Row backgroundColor="red" height="1/4" />
<Row backgroundColor="red" height="22/32/42/52/62/7/4" />
<Row backgroundColor="red" height="1/4" />
</Rows>
)
}
Rows
Properties
alignHorizontal
Horizontally aligns the contents.
Code
<Rows
alignHorizontal="leftrightcentercenter"
grow
>
alignVertical
Vertically aligns the contents.
Code
<Rows
alignVertical="bottomtopcenterspace-betweencenter"
grow
>
gap
The space between each Row.
Code
<Rows
gap="01234681012141618202224262830323436384042444648525660647280961281601922242568"
grow
>
Box
Properties
Rows
inherits the properties of Box
.
Row
Properties
height
Sets the height span of the Row (in fractions).
Code
import { createSystem } from 'frog/ui'
const { Rows, Row } = createSystem()
function Example() {
return (
<Rows gap="8" grow>
<Row backgroundColor="red" width="100%" height="1/4" />
<Row backgroundColor="red" width="100%" height="22/32/42/52/62/7/4" />
<Row backgroundColor="red" width="100%" height="1/4" />
</Rows>
)
}
Box
Properties
Rows
inherits the properties of Box
.