Flex

Single-axis flex layout. Column by default (mobile-first), with optional row direction at a breakpoint, wrap, alignment, and justification.

Example

ReactTypeScriptCSSAccessibilityTokens
Left content

Jane Doe

Product Engineer

ReactTypeScriptDesign Systems

Props

NameTypeDefaultRequiredDescription
rowboolean | 'sm' | 'md' | 'lg' | 'xl'NoSwitch to row direction. A breakpoint value makes it row only at that width and above.
wrapbooleanfalseNoAllow items to wrap to new lines
gap0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16NoGap between items
alignResponsive<'start' | 'center' | 'end' | 'stretch' | 'baseline'>NoCross-axis alignment. Accepts a string or { base, sm, md, lg, xl } object.
justifyResponsive<'start' | 'center' | 'end' | 'between'>NoMain-axis justification. Accepts a string or { base, sm, md, lg, xl } object.

Accessibility

  • Renders a plain <div> — no ARIA roles needed
  • Flex layout is purely visual and does not affect accessibility tree