Skip to content
On this page

icon-button ​

button styles ​

tooltip ​

template ​

html
<bunt-icon-button id="ibtn-none">add</bunt-icon-button>
<bunt-icon-button id="ibtn-primary">remove</bunt-icon-button>
<bunt-icon-button id="ibtn-clear">add</bunt-icon-button>
<bunt-icon-button id="ibtn-disabled" :disabled="true">add</bunt-icon-button>

<bunt-icon-button id="ibtn-tooltip" tooltip="hoorrraaaa">tooltip-outline</bunt-icon-button>
<bunt-icon-button id="ibtn-tooltip" tooltip="hoorrraaaa" tooltip-placement="right">tooltip right</bunt-icon-button>

style ​

stylus
#ibtn-none, #ibtn-tooltip
	icon-button-style()
#ibtn-primary, #ibtn-disabled
	icon-button-style(color: $clr-primary)
#ibtn-clear
	icon-button-style(color: $clr-primary, style: 'clear')

props ​

proptyperequireddefaultdescription
typestringfalse'button'native button type
disabledbooleanfalsefalsedisables button (renders as disabled and does not emit click, other events and native events are unaffected)
tooltipstringfalsetooltip text
tooltip-placementstringfalse'bottom'tooltip placement, see v-tooltip directive documentation
tooltip-fixedbooleanfalsefalseposition tooltip fixed, see v-tooltip directive documentation
loadingbooleanfalsefalseshow loading indicator and disable button

slots ​

slotdescription
defaultmdi icon name

events ​

eventargsdescription
clicknull

style mixin parameters ​

parametertypedefaultdescription
style'flat', 'clear''flat'button style
colorcolorbackground-color if flat style, text color if clear style

Released under the MIT License.