Files
gpx.studio/website/src/lib/components/ui/alert/alert-title.svelte

21 lines
469 B
Svelte
Raw Normal View History

2024-04-22 19:36:31 +02:00
<script lang="ts">
import type { HTMLAttributes } from "svelte/elements";
2025-06-21 21:07:36 +02:00
import { cn, type WithElementRef } from "$lib/utils.js";
2024-04-22 19:36:31 +02:00
2025-06-08 16:32:41 +02:00
let {
ref = $bindable(null),
class: className,
children,
...restProps
2025-06-21 21:07:36 +02:00
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
2024-04-22 19:36:31 +02:00
</script>
2025-06-08 16:32:41 +02:00
<div
bind:this={ref}
2025-06-21 21:07:36 +02:00
data-slot="alert-title"
class={cn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", className)}
2025-06-08 16:32:41 +02:00
{...restProps}
2024-04-22 19:36:31 +02:00
>
2025-06-08 16:32:41 +02:00
{@render children?.()}
</div>