Line data Source code
1 : <script setup lang="ts">
2 : import Switch from '@comfyorg/design-system/switch/Switch'
3 :
4 : import LayoutField from './LayoutField.vue'
5 :
6 : defineProps<{
7 : id?: string
8 : label: string
9 : tooltip?: string
10 : }>()
11 :
12 2355 : const modelValue = defineModel<boolean>({ default: false })
13 36 : </script>
14 :
15 : <template>
16 39 : <LayoutField singleline :label :tooltip>
17 : <Switch
18 : :id
19 : v-model="modelValue"
20 : :aria-label="label"
21 : class="transition-transform active:scale-90"
22 : />
23 : </LayoutField>
24 : </template>
|