Flex
Arrange children with token-based flex alignment and gaps.
Preview
Import
import { Flex, Badge } from "@sigil-ui/components";Usage
<Flex gap="var(--s-space-12)" wrap><Badge>Design</Badge><Badge>Build</Badge><Badge>Ship</Badge></Flex>Props
| Prop | Type | Default | Description |
|---|---|---|---|
direction | "row" | "column" | "row-reverse" | "column-reverse" | — | Direction configuration. |
align | "start" | "center" | "end" | "stretch" | "baseline" | — | Align configuration. |
justify | "start" | "center" | "end" | "between" | "around" | "evenly" | — | Justify configuration. |
wrap | boolean | "wrap" | "nowrap" | "wrap-reverse" | — | Wrap configuration. |
gap | number | string | — | Gap configuration. |
inline | boolean | — | Inline configuration. |