boredgame/src/lib/components/ui/alert/AlertTitle.svelte

15 lines
368 B
Svelte

<script lang="ts">
import { cn } from "$lib/utils";
let className: string | undefined | null = undefined;
export { className as class };
export let level: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" = "h5";
</script>
<svelte:element
this={level}
class={cn("mb-1 font-medium leading-none tracking-tight", className)}
{...$$restProps}
>
<slot />
</svelte:element>