Sha256: 642520634041e29479efcf090195705d30cf3b8bbac8728ad2b552aec4b0290d
Contents?: true
Size: 420 Bytes
Versions: 33
Compression:
Stored size: 420 Bytes
Contents
const NextIcon = ({ size, name, additionalClassNames = '' }) => { const className = classNames({ "next-icon": true, ['next-icon--size-' + size]: true, [additionalClassNames]: (additionalClassNames.length > 0) }); return ( <svg className={className}> <use xlinkHref={'#' + name} /> </svg> ); }; NextIcon.propTypes = { size: React.PropTypes.number, name: React.PropTypes.string };
Version data entries
33 entries across 33 versions & 1 rubygems