1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-25 08:47:54 +00:00
bramw_baserow/web-frontend/modules/builder/components/elements/AddElementZone.vue
2024-05-24 11:09:00 +00:00

30 lines
598 B
Vue

<template>
<div class="add-element-zone" @click="!disabled && $emit('add-element')">
<div
v-tooltip="disabled ? tooltip : null"
class="add-element-zone__content"
:class="{ 'add-element-zone__button--disabled': disabled }"
>
<i class="iconoir-plus add-element-zone__icon"></i>
</div>
</div>
</template>
<script>
export default {
name: 'AddElementZone',
props: {
disabled: {
type: Boolean,
required: false,
default: false,
},
tooltip: {
type: String,
required: false,
default: null,
},
},
}
</script>