rainbow icon
🍔

Columns

Renders children horizontally in equal-width columns by default, with consistent spacing between them.
If there is only a single column, no space will be rendered.

Basic usage

Playroom

Custom widths

You can optionally control column widths by manually rendering a Column as a direct child of Columns, which allows you to set an explicit width prop.
A common usage of this is to make a column shrink to the width of its content. This can be achieved by setting the column width prop to "content". Any columns without an explicit width will share the remaining space equally.
The following fractional widths are also available: 1/2, 1/3, 2/3, 1/4, 3/4, 1/5, 2/5, 3/5, 4/5.
Playroom

Column with content width

Playroom

Nested columns

Playroom

Nested columns with explicit widths

Playroom

Nested columns with explicit widths (content)

Playroom

Center-aligned vertically

Playroom

Bottom-aligned vertically

Playroom

Center-aligned horizontally

Playroom

Right-aligned horizontally

Playroom

Justified horizontally

Playroom

Dynamic width content

Lorem
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Playroom