Sha256: 6c2b327f81cf6c25362f45a77484472b36dbec8ee1c9fa9dd214aeb7ba3052b5
Contents?: true
Size: 604 Bytes
Versions: 35
Compression:
Stored size: 604 Bytes
Contents
const CardSection = ({ 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 }); return ( <div className={className}> {children} </div> ); }; CardSection.propTypes = { children: React.PropTypes.node.isRequired, wrappable: React.PropTypes.bool, borderless: React.PropTypes.bool }; CardSection.defaultProps = { wrappable: false, borderless: false };
Version data entries
35 entries across 35 versions & 1 rubygems