mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
Fixes https://github.com/chatwoot/chatwoot/issues/8436 Fixes https://github.com/chatwoot/chatwoot/issues/9767 Fixes https://github.com/chatwoot/chatwoot/issues/10156 Fixes https://github.com/chatwoot/chatwoot/issues/6031 Fixes https://github.com/chatwoot/chatwoot/issues/5696 Fixes https://github.com/chatwoot/chatwoot/issues/9250 Fixes https://github.com/chatwoot/chatwoot/issues/9762 --------- Co-authored-by: Pranav <pranavrajs@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
48 lines
1006 B
Vue
48 lines
1006 B
Vue
<script setup>
|
|
defineProps({
|
|
buttonText: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
rightIcon: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
leftIcon: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<button
|
|
class="inline-flex relative items-center p-1.5 w-fit h-8 gap-1.5 rounded-lg hover:bg-slate-50 dark:hover:bg-slate-800 active:bg-slate-75 dark:active:bg-slate-800"
|
|
>
|
|
<slot name="leftIcon">
|
|
<fluent-icon
|
|
v-if="leftIcon"
|
|
:icon="leftIcon"
|
|
size="18"
|
|
class="flex-shrink-0 text-slate-900 dark:text-slate-50"
|
|
/>
|
|
</slot>
|
|
<span
|
|
v-if="buttonText"
|
|
class="text-sm font-medium truncate text-slate-900 dark:text-slate-50"
|
|
>
|
|
{{ buttonText }}
|
|
</span>
|
|
<slot name="rightIcon">
|
|
<fluent-icon
|
|
v-if="rightIcon"
|
|
:icon="rightIcon"
|
|
size="18"
|
|
class="flex-shrink-0 text-slate-900 dark:text-slate-50"
|
|
/>
|
|
</slot>
|
|
|
|
<slot name="dropdown" />
|
|
</button>
|
|
</template>
|