mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 00:18:20 +01:00
21 lines
432 B
Vue
21 lines
432 B
Vue
<script setup lang="ts">
|
|
import { cn } from "@/lib/utils";
|
|
import type { HTMLAttributes } from "vue";
|
|
import { type AlertVariants, 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>
|