Skip to content

Flex

stable

Flexbox layout container with gap and alignment

import { Flex } from "@nodus/design-system"
Loading demo…

Props

direction
Type CSSProperties['flexDirection']Default

Flex direction

align
Type CSSProperties['alignItems']Default

Cross-axis alignment

justify
Type CSSProperties['justifyContent']Default

Main-axis alignment

wrap
Type CSSProperties['flexWrap']Default

Flex wrapping

gap
Type SpaceToken | stringDefault

Gap between children

inline
Type booleanDefault

Use inline-flex instead of flex

Metadataspace
MobileStacks / Scroll

Horizontal flex rows that exceed viewport width should use flex-wrap or switch to flex-col on mobile. Use the responsive-direction pattern: flex flex-col sm:flex-row.

Design Rationale

This component was designed to express:

Explore Related

Was this helpful?