@wooweb/button
v1.4.2
Published
Wooweb Button component
Downloads
5
Maintainers
Readme
Wooweb Button Pug Component
Usage
mixin Button({ className='btn', label, icon='', modifier='', js=false })
-const classComponent = setClass(className, modifier, js)
button(class=classComponent)
if(icon !== '')
+Icon({ id:icon, className:`${prefix}-${className}__icon` })
span(class=`${prefix}-${className}__text`) #{label}