chore(components): use useId from vue

This commit is contained in:
Benjamin Canac
2024-09-05 16:00:30 +02:00
parent 9c4e8f2dba
commit de0133e177
6 changed files with 12 additions and 18 deletions

View File

@@ -51,10 +51,10 @@ export interface SwitchSlots {
</script>
<script setup lang="ts">
import { computed } from 'vue'
import { computed, useId } from 'vue'
import { SwitchRoot, SwitchThumb, useForwardProps, Label } from 'radix-vue'
import { reactivePick } from '@vueuse/core'
import { useId, useAppConfig } from '#imports'
import { useAppConfig } from '#imports'
import { useFormField } from '../composables/useFormField'
const props = defineProps<SwitchProps>()