Basic Row

Default horizontal layout with customizable gap.

A
B
C

Space Between

Items spread with space-between for header-style layouts.

Logo
DocsPro

Column Direction

Vertical stacking with column direction and flex-start alignment.

Step 1: Sign upStep 2: Verify emailStep 3: Start building

Wrap

Items wrap to the next line when they overflow the container.

Tag 1Tag 2Tag 3Tag 4Tag 5Tag 6Tag 7Tag 8

Center Aligned

Items centered both horizontally and vertically.

All systems operational

End Aligned

Items pushed to the end of the container for action button groups.

Usage

<Flex gap="0.75rem"> <div>A</div> <div>B</div> <div>C</div></Flex><Flex justify="space-between" align="center"> <strong>Logo</strong> <Badge type="gold">Pro</Badge></Flex><Flex direction="column" gap="0.5rem" align="flex-start"> <Badge>Step 1</Badge> <Badge>Step 2</Badge></Flex>

Props

PropTypeDefaultDescription
gapstring"1rem"Space between items
alignstring"center"Cross-axis alignment (align-items)
justifystring"flex-start"Main-axis alignment (justify-content)
directionstring"row"Flex direction: row, column, row-reverse, column-reverse
wrapstring"nowrap"Flex wrap: nowrap, wrap, wrap-reverse
childrencontent-Flex items