| 123456789101112131415161718192021 |
- <script setup lang="ts">
- import type { HTMLAttributes } from "vue"
- import type { AlertVariants } from "."
- import { cn } from '@/Packages/Shadcn/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>
|