mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-04-21 11:01:18 +00:00
24 lines
577 B
Svelte
24 lines
577 B
Svelte
<script lang="ts">
|
|
import type { HTMLAttributes } from "svelte/elements";
|
|
import { cn, type WithElementRef } from "$lib/utils.js";
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
children,
|
|
...restProps
|
|
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
</script>
|
|
|
|
<div
|
|
bind:this={ref}
|
|
data-slot="alert-description"
|
|
class={cn(
|
|
"text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",
|
|
className
|
|
)}
|
|
{...restProps}
|
|
>
|
|
{@render children?.()}
|
|
</div>
|