Theme
Flex
Flexbox layout container
Start Here
Start from the smallest working snippet, then move to interactive examples and the full API contract below.
Styled quick start
Copy this entrypoint first. It includes the imports required to get the component on screen.
Import options
Root package
ts
import { Flex } from '@dryui/ui'Per-component subpath
ts
import { Flex } from '@dryui/ui/flex'Customize
Use the interactive examples to see common variants, states, and composition patterns before building your own.
Row direction
Column direction
Wrap
Compose
The full API contract lives here: props, CSS variables, and the public data attributes you can target when styling.
| Prop | Type | Default | Required | Bindable |
|---|---|---|---|---|
direction | rowcolumnrow-reversecolumn-reverse Maps to flex-direction. | 'row' | — | — |
wrap | nowrapwrapwrap-reverse Maps to flex-wrap. | 'nowrap' | — | — |
gap | smmdlgxl Uses DryUI spacing scale tokens, not raw CSS units. | 'md' | — | — |
justify | startcenterendbetweenaroundevenly Maps to justify-content. | 'start' | — | — |
align | startcenterendstretchbaseline Maps to align-items. | 'stretch' | — | — |
children | Snippet | — | ✓ | — |
Forwards <div> attributes via rest props. Common examples: id, style, role.