Skip to main content

Flex

Description

A component that abstracts flexbox functionality. All valid flex-box dependent rules are implemented as props.

Demo

import { Flex } from "@neui/layout";
Live Editor
Result
Loading...

Props

CSS PropExtendsRenderAs PropRenders by default
BoxBox
NameCSS Rule(s)Description
alignItemsalign-itemsSets the component's align-items
justifyContentjustify-contentSets the component's justify-content
alignItemsalign-itemsSets the component's align-items
justifyContentjustify-contentSets the component's justify-content
flexWrapflex-wrapSets the component's flex-wrap
flexDirectionflex-directionSets the component's flex-direction
flexBasisflex-basisSets the component's flex-basis
flexGrowflex-growSets the component's flex-grow
flexShrinkflex-shrinkSets the component's flex-shrink