Skip to content
nexubDesign System
v2.4.0

Components · Layout

Flex

StableSince v0.0.1

Flexbox layout primitive.

import { Flex } from '@nexub/react';

Examples

Default

Space between

Wrap

Props

Props
PropTypeDefaultDescription
direction'row' | 'column' | 'row-reverse' | 'column-reverse'—Sets the flex-direction CSS property.
align'start' | 'center' | 'end' | 'stretch'—Sets the align-items CSS property.
justify'start' | 'center' | 'end' | 'between' | 'around'—Sets the justify-content CSS property.
gap'xs' | 'sm' | 'md' | 'lg' | 'xl'—Spacing between children using design tokens.
wrapboolean—Allows children to wrap onto multiple lines.

On iOS & Android