Files
2026-09-22 02:24:49 +02:00

21 lines
454 B
Svelte

<script lang="ts">
import { cn, type WithElementRef } from '$lib/utils.js';
import type { HTMLAttributes } from 'svelte/elements';
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: WithElementRef<HTMLAttributes<HTMLElement>> = $props();
</script>
<caption
bind:this={ref}
data-slot="table-caption"
class={cn('mt-4 text-cladd-xs text-cladd-fg-soft', className)}
{...restProps}
>
{@render children?.()}
</caption>