Files
ots/resources/js/components/ui/alert/Alert.vue
T
Twyco 059b08b956
tests / ci (push) Failing after 2m23s
initial commit
2026-09-10 20:36:26 +02:00

22 lines
441 B
Vue

<script setup lang="ts">
import type { HTMLAttributes } from "vue"
import type { AlertVariants } from "."
import { cn } from "@/lib/utils"
import { alertVariants } from "."
const props = defineProps<{
class?: HTMLAttributes["class"]
variant?: AlertVariants["variant"]
}>()
</script>
<template>
<div
data-slot="alert"
:class="cn(alertVariants({ variant }), props.class)"
role="alert"
>
<slot />
</div>
</template>