- 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.
18 lines
342 B
Vue
18 lines
342 B
Vue
<script setup lang="ts">
|
|
import type { HTMLAttributes } from "vue"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
const props = defineProps<{
|
|
class?: HTMLAttributes["class"]
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
data-slot="dialog-header"
|
|
:class="cn('flex flex-col gap-2 text-center sm:text-left', props.class)"
|
|
>
|
|
<slot />
|
|
</div>
|
|
</template>
|