1.4.2 • Published 2 months ago

@wooweb/link v1.4.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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}