Layouts
Flexbox
Component for building flexible box layouts.
There are convenience components Row and Column which render a Flexbox with the direction pre-selected. You should opt to use them
by default as they provide more semantic meaning and are easier to read.
Component props
A Flexbox renders a Box as a child, so it also accepts all Box props.
| Name | Type |
|---|---|
| display | Responsive<"flex" | "inline-flex" | "none"> |
| direction | Responsive<"row" | "column" | "row-reverse" | "column-reverse"> |
| wrap | Responsive<"wrap" | "nowrap" | "wrap-reverse"> |
| justifyContent | Responsive<"center" | "start" | "end" | "flex-start" | "flex-end" | "left" | "right" | "space-between" | "space-around" | "space-evenly" | "stretch"> |
| justifyItems | Responsive<"center" | "start" | "end" | "flex-start" | "flex-end" | "self-start" | "self-end" | "stretch" | "left" | "right" | "baseline"> |
| alignContent | Responsive<"center" | "start" | "end" | "flex-start" | "flex-end" | "baseline" | "space-between" | "space-around" | "space-evenly" | "stretch"> |
| alignItems | Responsive<"center" | "start" | "end" | "flex-start" | "flex-end" | "self-start" | "self-end" | "stretch" | "baseline"> |
| gap | Responsive<Spacing> |
| gapX | Responsive<Spacing> |
| gapY | Responsive<Spacing> |
| as | string |
| asChild | boolean |