Sha256: 1232a8739acee4fee23c7af7e7e9d8ff3283345e567a4b95f6f6e0042ae4cffa
Contents?: true
Size: 681 Bytes
Versions: 2
Compression:
Stored size: 681 Bytes
Contents
const CardSection = ({ title, title_small, 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} small={title_small} />; } else { return null; } }; return ( <div className={className}> {showTitle()} {children} </div> ); }; CardSection.propTypes = { title: React.PropTypes.string, children: React.PropTypes.node };
Version data entries
2 entries across 2 versions & 1 rubygems