Add custom checkbox component

This commit is contained in:
2022-03-02 20:06:06 +00:00
parent 7b5b16c1b2
commit 489aa88c4b
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,11 @@
<script lang="ts" setup>
const props = defineProps(["modelValue"]);
</script>
<template>
<input
type="checkbox"
:checked="modelValue"
@change="$emit('update:modelValue', ($event.target as HTMLInputElement)?.checked)"
class="dark:bg-slate-900">
</template>