adrema/resources/js/components/Ui/IconButton.vue

17 lines
329 B
Vue
Raw Normal View History

2023-03-04 12:02:17 +01:00
<template>
<button v-on="$listeners" type="button" class="btn label btn-primary">
<svg-sprite class="w-3 h-3 mr-2" :src="icon"></svg-sprite>
<span><slot></slot></span>
</button>
</template>
<script>
export default {
props: {
icon: {
required: true,
},
},
};
</script>