mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 21:33:18 +01:00
13 lines
300 B
Vue
13 lines
300 B
Vue
<template>
|
|
<label class="label inline-flex cursor-pointer gap-4 font-normal">
|
|
<input type="checkbox" class="toggle toggle-primary" v-model="modelValue" />
|
|
<slot />
|
|
</label>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
const { modelValue } = defineModels<{
|
|
modelValue: boolean;
|
|
}>();
|
|
</script>
|