Component docs
Loading
import { Flex } from "@pixxl-tools/components";
// In Server Components:
import { Flex } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
justify | "start" | "center" | "end" | "between" | — | Main-axis distribution of the children. |
align | "start" | "center" | "end" | "stretch" | — | Cross-axis alignment of the children. |
direction | "row" | "column" | "row-reverse" | "column-reverse" | — | — |
gap | PixxlGap | — | Space between children (none, xs, sm, md, lg: 0, 4, 8, 16, 20 px). |
wrap | boolean | — | Let children wrap onto more lines. |
justify"start" | "center" | "end" | "between"
Main-axis distribution of the children.
align"start" | "center" | "end" | "stretch"
Cross-axis alignment of the children.
direction"row" | "column" | "row-reverse" | "column-reverse"
gapPixxlGap
Space between children (none, xs, sm, md, lg: 0, 4, 8, 16, 20 px).
wrapboolean
Let children wrap onto more lines.
<Flex justify="between">...</Flex>