AdelieStack/src/lib/components/ui/alert/alert-description.svelte

17 lines
437 B
Svelte
Raw Normal View History

2024-12-31 22:43:09 +00:00
<script lang="ts">
import type { WithElementRef } from "bits-ui";
2024-12-31 22:43:09 +00:00
import type { HTMLAttributes } from "svelte/elements";
import { cn } from "$lib/utils.js";
2024-12-31 22:43:09 +00:00
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
2024-12-31 22:43:09 +00:00
</script>
<div bind:this={ref} class={cn("text-sm [&_p]:leading-relaxed", className)} {...restProps}>
{@render children?.()}
2024-12-31 22:43:09 +00:00
</div>