web-app/src/components/ui/alert/AlertTitle.vue
padreug 5a59f7ce89 feat: add alert component suite for improved user notifications
- 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.
2025-09-28 03:59:55 +02:00

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>