1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

feat: adds preview for settings (#2669)

This commit is contained in:
Amir Raminfar
2024-01-08 12:21:37 -08:00
committed by GitHub
parent 27fe0663cf
commit 72a580574a
10 changed files with 164 additions and 87 deletions

View File

@@ -1,8 +1,12 @@
<template>
<label class="label inline-flex cursor-pointer gap-4 font-normal">
<input type="checkbox" class="toggle toggle-primary" v-model="modelValue" />
<slot />
</label>
<labeled-input>
<template #label>
<slot />
</template>
<template #input>
<input type="checkbox" class="toggle toggle-primary" v-model="modelValue" />
</template>
</labeled-input>
</template>
<script lang="ts" setup>