Sha256: d01930e00a72f698e3dfc5908cf306133e9edaed99db00f481fafa42db3e3d8f
Contents?: true
Size: 647 Bytes
Versions: 16
Compression:
Stored size: 647 Bytes
Contents
const CardSection = ({ title, children, wrappable, borderless }) => { const className = classNames({ 'next-card__section': true, 'wrappable': wrappable, 'wrappable--half-spacing': wrappable, 'next-card__section--no-border': borderless, 'next-card__section--no-top-spacing': borderless }); const showTitle = () => { if (title) { return <CardSectionTitle title={title}/>; } else { return null; } }; return ( <div className={className}> {showTitle()} {children} </div> ); }; CardSection.propTypes = { title: React.PropTypes.string, children: React.PropTypes.node };
Version data entries
16 entries across 16 versions & 1 rubygems