shadcn-vue/packages/cli/test/fixtures/nuxt/components/ui/alert-dialog/AlertDialogTitle.vue
2024-11-04 18:19:28 +08:00

16 lines
395 B
Vue

<script setup lang="ts">
import { cn } from '@/lib/utils'
import { AlertDialogTitle, type AlertDialogTitleProps } from 'reka-ui'
const props = defineProps<AlertDialogTitleProps & { class?: string }>()
</script>
<template>
<AlertDialogTitle
:as-child="props.asChild"
:class="cn('text-lg text-foreground font-semibold', props.class)"
>
<slot />
</AlertDialogTitle>
</template>