Components · Layout
Flexbox layout primitive.
import { Flex } from '@nexub/react';| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| direction | 'row' | 'column' | 'row-reverse' | 'column-reverse' | — | — | Sets the flex-direction CSS property. |
| align | 'start' | 'center' | 'end' | 'stretch' | — | — | Sets the align-items CSS property. |
| justify | 'start' | 'center' | 'end' | 'between' | 'around' | — | — | Sets the justify-content CSS property. |
| gap | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | — | — | Spacing between children using design tokens. |
| wrap | boolean | — | — | Allows children to wrap onto multiple lines. |