mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-27 23:41:21 +00:00
17 lines
482 B
Svelte
17 lines
482 B
Svelte
<script lang="ts">
|
|
import { cn } from "$lib/utils";
|
|
import type { HTMLAttributes } from "svelte/elements";
|
|
import { alertVariants, type Variant } from ".";
|
|
|
|
type $$Props = HTMLAttributes<HTMLDivElement> & {
|
|
variant?: Variant;
|
|
};
|
|
|
|
let className: $$Props["class"] = undefined;
|
|
export let variant: $$Props["variant"] = "default";
|
|
export { className as class };
|
|
</script>
|
|
|
|
<div class={cn(alertVariants({ variant }), className)} {...$$restProps} role="alert">
|
|
<slot />
|
|
</div>
|