Sha256: bbedaa7d6fcc271c6f151640214a069a71b3b710082f62bb3430b2a7419c0620
Contents?: true
Size: 779 Bytes
Versions: 66
Compression:
Stored size: 779 Bytes
Contents
/* @flow */ import React from 'react' import classnames from 'classnames' import { buildCss } from '../utilities/props' import { globalProps } from '../utilities/globalProps.js' type FlexItemPropTypes = { children: array<React.ReactNode> | React.ReactNode, fixedSize: string, grow: boolean, className: string, } const FlexItem = (props: FlexItemPropTypes) => { const { children, className, fixedSize, grow } = props const growClass = grow === true ? 'grow' : '' const fixedStyle = fixedSize !== undefined ? { flexBasis: `${fixedSize}` } : null return ( <div className={classnames(buildCss('pb_flex_item_kit', growClass), globalProps(props), className)} style={fixedStyle} > {children} </div> ) } export default FlexItem
Version data entries
66 entries across 66 versions & 1 rubygems