Skip to content
nexubDesign System
v12.7.0

Components · Layout

Flex

StableAdded v0.0.1

Flexbox layout primitive.

import { Flex } from '@nexub/react';
View as Markdown

Playground

Props

direction
TSX
<Flex gap="md" align="center">…</Flex>

Examples

Default

Space between

ActiveDraft

Wrap

ReactTypeScriptTailwindRadix UIStorybook

Props

Props
PropTypeDefaultDescription
direction'row' | 'column' | 'row-reverse' | 'column-reverse''row'Sets the flex-direction CSS property.
alignstring—Sets the align-items CSS property.
justifystring—Sets the justify-content CSS property.
gapstring | number—Spacing between children using design tokens.
wrapbooleanfalseAllows children to wrap onto multiple lines.
asChildbooleanfalse

On iOS & Android