Sha256: 05f154d0ddf7c643f7366aadf7fbcc3cce4b6cd7df60e73c40ae76e999f93324
Contents?: true
Size: 385 Bytes
Versions: 37
Compression:
Stored size: 385 Bytes
Contents
const Button = ({ children, disabled, name=false, onClick = ()=>{}, primary = false, destroy = false, type = 'button' }) => { const className = classNames({ 'btn': true, 'btn-primary': primary, 'btn-destroy': destroy }); return( <button type={type} name={name} disabled={disabled} className={className} onClick={onClick}> {children} </button> ) };
Version data entries
37 entries across 37 versions & 1 rubygems