Sha256: 961c2a8dbfcd0637069e873ced862deffcfe4f2fab665315b92a2bf6c227bce1
Contents?: true
Size: 713 Bytes
Versions: 95
Compression:
Stored size: 713 Bytes
Contents
/* @flow */ import React, { Node } from 'react' import { Card } from '../../' import classnames from 'classnames' import { globalProps } from '../../utilities/globalProps.js' type FilterBackgroundProps = { background: boolean, className: string, children: Node, } const FilterBackground = (props: FilterBackgroundProps) => { const { background = true, className, children } = props return ( <div className={classnames(`pb_filter_kit ${className}`, globalProps(props))}> <Choose> <When condition={background}> <Card padding="none">{children}</Card> </When> <Otherwise>{children}</Otherwise> </Choose> </div> ) } export default FilterBackground
Version data entries
95 entries across 95 versions & 1 rubygems