1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-21 23:37:55 +00:00
bramw_baserow/web-frontend/modules/core/components/Chips.vue
2023-12-13 06:43:56 +00:00

34 lines
557 B
Vue

<template>
<button
class="chips"
:class="{ 'chips--active': active, 'chips--disabled': disabled }"
v-on="$listeners"
>
<i v-if="icon" class="chips__icon" :class="icon" />
<slot />
</button>
</template>
<script>
export default {
name: 'Chips',
props: {
active: {
required: false,
type: Boolean,
default: false,
},
disabled: {
required: false,
type: Boolean,
default: false,
},
icon: {
required: false,
type: String,
default: '',
},
},
}
</script>