Skip to content

wt-icon-btn.vue

Specs

Props

Name Required Types Default Description Example Deprecated
disabled boolean - Disables btn

Events

Name Params Description
click
mousedown

Note: all wt-icon props are passed as "$attrs"

Example

Code
js
<script setup>
const callAlert = () => window.alert('wt-icon-btn clicked');
</script>

<template>
  <wt-icon-btn icon="edit" @click="callAlert" />
</template>