web/app/components/ui/dialog/DialogTitle.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

24 lines
648 B
Vue

<script setup lang="ts">
import type { DialogTitleProps } from "reka-ui"
import type { HTMLAttributes } from "vue"
import { reactiveOmit } from "@vueuse/core"
import { DialogTitle, useForwardProps } from "reka-ui"
import { cn } from "@/lib/utils"
const props = defineProps<DialogTitleProps & { class?: HTMLAttributes["class"] }>()
const delegatedProps = reactiveOmit(props, "class")
const forwardedProps = useForwardProps(delegatedProps)
</script>
<template>
<DialogTitle
data-slot="dialog-title"
v-bind="forwardedProps"
:class="cn('text-lg leading-none font-semibold', props.class)"
>
<slot />
</DialogTitle>
</template>