File size: 342 Bytes
89ce340
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<template>
  <Button 
    :checked="checked"
    :disabled="disabled"
    type="checkbox"
  >
    <slot></slot>
  </Button>
</template>

<script lang="ts" setup>
import Button from './Button.vue'

withDefaults(defineProps<{
  checked?: boolean
  disabled?: boolean
}>(), {
  checked: false,
  disabled: false,
})
</script>