FlexItem#

This component creates a div and permits adding css flex properties to this div with props. It should be used with FlexLayout.

Example#

import { FlexLayout, FlexItem } from 'la-danze-ui';
function App() {
return (
<FlexLayout>
<FlexItem />
<FlexItem flexGrow={1} alignSelf="flex-end" />
...
</FlexLayout>
);
}

Props#

NameTypeDefaultRequiredDescription
ordernumber | GlobalsNoSee mozilla doc.
flexGrownumber | GlobalsNoSee mozilla doc.
flexShrinknumber | GlobalsNoSee mozilla doc.
flexBasisFlexBasis | GlobalsNoSee mozilla doc.
flexFlex | GlobalsNoSee mozilla doc.
alignSelf'auto'
|'normal'
|AlignItems
|MixProperties<'safe', AlignItems>
|MixProperties<'unsafe', AlignItems>
|Globals
NoSee mozilla doc.

FlexBasis: number | string | 'fill' | 'max-content' | 'min-content' | 'fit-content' | 'content'
Flex: 'auto' | 'initial' | 'none' | number | string
AlignItems: 'flex-start' | 'flex-end' | 'start' | 'end' | 'stretch' | 'self-start' | 'self-end' | 'center' | 'baseline'