mirror of https://github.com/wg-easy/wg-easy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
464 B
16 lines
464 B
<template>
|
|
<div class="flex items-center">
|
|
<Label :for="id" class="font-semibold md:align-middle md:leading-10">
|
|
{{ label }}
|
|
</Label>
|
|
<BaseTooltip v-if="description" :text="description">
|
|
<IconsInfo class="size-4" />
|
|
</BaseTooltip>
|
|
</div>
|
|
<BaseSwitch :id="id" v-model="data" />
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
defineProps<{ id: string; label: string; description?: string }>();
|
|
const data = defineModel<boolean>();
|
|
</script>
|
|
|