- Introduced Alert, AlertDescription, and AlertTitle components to enhance user notification capabilities. - Implemented alertVariants for customizable alert styles based on different variants. - Added TypeScript support for props in each component, ensuring type safety and better integration. These changes provide a structured approach to displaying alerts, improving user experience and flexibility in notifications.
17 lines
372 B
Vue
17 lines
372 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="alert-title"
|
|
:class="cn('col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight', props.class)"
|
|
>
|
|
<slot />
|
|
</div>
|
|
</template>
|