Skip to main content

Row

A horizontal flex container. Children are placed side by side. Use width modifiers (1/2, 1/3, etc.) on children to control their share of the row.

Basic usage

row:
card 1/2:
## Left
card 1/2:
## Right

Three columns

row:
1/3 card:
## One third
1/3 card:
## One third
1/3 card:
## One third

Mixed widths

row:
1/4 card:
## Narrow
3/4 card:
## Wide

Children without a fraction

Children without a fraction share the remaining space equally.

row:
card:
## Auto width
card:
## Auto width
card:
## Auto width

Any element, not just cards

row: works with any element — buttons, inputs, badges, and more.

row:
blue primary button: Save
outline button: Cancel

Reference

FractionWidth
1/250%
1/333.3%
2/366.6%
1/425%
3/475%
full100%