@wooweb/link
v1.4.2
Published
Wooweb Link component
Downloads
4
Maintainers
Readme
Wooweb Link Pug Component
Source
mixin Link({ className='link', label, icon='', target="_self", modifier='', js=false, href })
-const classComponent = setClass(className, modifier, js)
a(class=classComponent target=target href=href)
if(icon !== '')
+Icon({ id:icon, className:`${prefix}-${className}__icon` })
span(class=`${prefix}-${className}__text`) #{label}