mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-21 23:37:55 +00:00
34 lines
557 B
Vue
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>
|