web/app/components/ui/dialog/Dialog.vue
Yoga Pangestu f9172d1431 feat: add dialog component suite for enhanced UI interactions
- Introduced a comprehensive set of dialog components: Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogScrollContent, DialogTitle, and DialogTrigger.
- Each component is designed to facilitate various dialog functionalities, including customizable props and slots for flexible content management.
- Integrated utility functions for class management to ensure consistent styling across components.
2026-07-24 10:53:58 +07:00

20 lines
462 B
Vue

<script setup lang="ts">
import type { DialogRootEmits, DialogRootProps } from "reka-ui"
import { DialogRoot, useForwardPropsEmits } from "reka-ui"
const props = defineProps<DialogRootProps>()
const emits = defineEmits<DialogRootEmits>()
const forwarded = useForwardPropsEmits(props, emits)
</script>
<template>
<DialogRoot
v-slot="slotProps"
data-slot="dialog"
v-bind="forwarded"
>
<slot v-bind="slotProps" />
</DialogRoot>
</template>