mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +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
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
<script setup>
 | 
						|
defineProps({
 | 
						|
  buttonText: {
 | 
						|
    type: String,
 | 
						|
    default: '',
 | 
						|
  },
 | 
						|
  isActive: {
 | 
						|
    type: Boolean,
 | 
						|
    default: false,
 | 
						|
  },
 | 
						|
  icon: {
 | 
						|
    type: String,
 | 
						|
    default: '',
 | 
						|
  },
 | 
						|
  iconColor: {
 | 
						|
    type: String,
 | 
						|
    default: '',
 | 
						|
  },
 | 
						|
});
 | 
						|
</script>
 | 
						|
 | 
						|
<template>
 | 
						|
  <button
 | 
						|
    class="relative inline-flex items-center justify-start w-full p-3 border-0 rounded-none first:rounded-t-xl last:rounded-b-xl h-11 hover:bg-slate-50 dark:hover:bg-slate-700 active:bg-slate-75 dark:active:bg-slate-800"
 | 
						|
  >
 | 
						|
    <div class="inline-flex items-center gap-3 overflow-hidden">
 | 
						|
      <fluent-icon
 | 
						|
        v-if="icon"
 | 
						|
        :icon="icon"
 | 
						|
        size="18"
 | 
						|
        :style="{ color: iconColor }"
 | 
						|
      />
 | 
						|
      <span
 | 
						|
        class="text-sm font-medium truncate text-slate-900 dark:text-slate-50"
 | 
						|
      >
 | 
						|
        {{ buttonText }}
 | 
						|
      </span>
 | 
						|
      <fluent-icon
 | 
						|
        v-if="isActive"
 | 
						|
        icon="checkmark"
 | 
						|
        size="18"
 | 
						|
        class="flex-shrink-0 text-slate-900 dark:text-slate-50"
 | 
						|
      />
 | 
						|
    </div>
 | 
						|
    <slot name="dropdown" />
 | 
						|
  </button>
 | 
						|
</template>
 |