1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-05-20 15:39:35 +00:00
bramw_baserow/web-frontend/modules/builder/components/elements/baseComponents/ABIcon.vue
2025-04-28 15:52:44 +02:00

37 lines
565 B
Vue

<template>
<i
class="ab-icon"
:class="{
'loading-spinner': loading,
'ab-icon--button': isButton,
[icon]: true,
}"
:title="title"
@click="$emit('click', $event)"
/>
</template>
<script>
export default {
name: 'ABIcon',
props: {
loading: {
type: Boolean,
required: false,
default: false,
},
isButton: {
type: Boolean,
default: false,
},
icon: {
type: String,
required: true,
},
title: {
type: String,
default: '',
},
},
}
</script>