Flex
Gutters
Flex will add a default horizontal gap between items. Use the
gutterWidth prop to define a different value, including 0 to disable
gutters altogether.
Numbers will be appended with px. String values will be passed directly.
A
B
C
A
B
C
A
B
C
A
B
C
A
B
C
() => { const propValues = [ 'md', // default 'xl', '2.5em', 50, 0 ]; const renderFlexes = () => propValues.map((value, index) => ( <Flex gutterWidth={value} key={index}> <FlexItem>A</FlexItem> <FlexItem>B</FlexItem> <FlexItem>C</FlexItem> </Flex> )); return <DemoLayout>{renderFlexes()}</DemoLayout>; }