cd9db1563d
* improve mobile ui * general cleanup * cleanup, improvements * fix hydration mismatch
19 lines
455 B
Vue
19 lines
455 B
Vue
<template>
|
|
<div class="flex items-center">
|
|
<FormLabel :for="id">
|
|
{{ label }}
|
|
</FormLabel>
|
|
<BaseTooltip v-if="description" :text="description">
|
|
<IconsInfo class="size-4" />
|
|
</BaseTooltip>
|
|
</div>
|
|
<div class="my-auto">
|
|
<BaseSwitch :id="id" v-model="data" />
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
defineProps<{ id: string; label: string; description?: string }>();
|
|
const data = defineModel<boolean>();
|
|
</script>
|