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