1
0
Fork 0
mirror of https://github.com/CorentinTh/it-tools.git synced 2025-07-26 08:39:38 +02:00
it-tools/packages/app/src/modules/ui/components/dialog/Dialog.vue

15 lines
376 B
Vue
Raw Normal View History

<script setup lang="ts">
2024-10-27 15:02:54 +01:00
import { DialogRoot, type DialogRootEmits, type DialogRootProps, useForwardPropsEmits } from 'radix-vue';
2024-10-27 15:02:54 +01:00
const props = defineProps<DialogRootProps>();
const emits = defineEmits<DialogRootEmits>();
2024-10-27 15:02:54 +01:00
const forwarded = useForwardPropsEmits(props, emits);
</script>
<template>
<DialogRoot v-bind="forwarded">
<slot />
</DialogRoot>
</template>