docs/components/layout/Flex

Flex

Flexbox container with direction, align, justify, gap, and wrap props.

import { Flex } from '@ybouhjira/hyperkit';

#Playground

Edit the code — the preview recompiles and re-renders as you type.

Live playground
Loading preview…

#Props

PropTypeDefaultDescription
direction'row' | 'column' | 'row-reverse' | 'column-reverse'Flex direction. Controls main axis orientation.
align'start' | 'center' | 'end' | 'stretch' | 'baseline'Align items along cross axis.
justify'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'Justify content along main axis.
gapSpaceTokenGap between flex children. Uses spacing token.
wrap'nowrap' | 'wrap' | 'wrap-reverse''nowrap'Flex wrap behavior.
inlinebooleanfalseUse inline-flex instead of flex display.