- 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.
16 lines
301 B
Vue
16 lines
301 B
Vue
<script setup lang="ts">
|
|
import type { DialogTriggerProps } from "reka-ui"
|
|
import { DialogTrigger } from "reka-ui"
|
|
|
|
const props = defineProps<DialogTriggerProps>()
|
|
</script>
|
|
|
|
<template>
|
|
<DialogTrigger
|
|
data-slot="dialog-trigger"
|
|
v-bind="props"
|
|
>
|
|
<slot />
|
|
</DialogTrigger>
|
|
</template>
|