mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: iamsivin <iamsivin@gmail.com> Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
		
			
				
	
	
		
			42 lines
		
	
	
		
			922 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			922 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<script setup>
 | 
						|
import ConfirmButton from './ConfirmButton.vue';
 | 
						|
import { ref } from 'vue';
 | 
						|
 | 
						|
const count = ref(0);
 | 
						|
 | 
						|
const incrementCount = () => {
 | 
						|
  count.value += 1;
 | 
						|
};
 | 
						|
</script>
 | 
						|
 | 
						|
<template>
 | 
						|
  <Story
 | 
						|
    title="Components/ConfirmButton"
 | 
						|
    :layout="{ type: 'grid', width: '400px' }"
 | 
						|
  >
 | 
						|
    <Variant title="Basic">
 | 
						|
      <div class="grid gap-2 p-4 bg-white dark:bg-slate-900">
 | 
						|
        <p>{{ count }}</p>
 | 
						|
        <ConfirmButton
 | 
						|
          label="Delete"
 | 
						|
          confirm-label="Confirm?"
 | 
						|
          @click="incrementCount"
 | 
						|
        />
 | 
						|
      </div>
 | 
						|
    </Variant>
 | 
						|
 | 
						|
    <Variant title="Color Change">
 | 
						|
      <div class="grid gap-2 p-4 bg-white dark:bg-slate-900">
 | 
						|
        <p>{{ count }}</p>
 | 
						|
        <ConfirmButton
 | 
						|
          label="Archive"
 | 
						|
          confirm-label="Confirm?"
 | 
						|
          color="slate"
 | 
						|
          confirm-color="amber"
 | 
						|
          @click="incrementCount"
 | 
						|
        />
 | 
						|
      </div>
 | 
						|
    </Variant>
 | 
						|
  </Story>
 | 
						|
</template>
 |