Files
trevstack/client/src/lib/ui/table/table-header.svelte
2025-05-13 17:19:12 -04:00

22 lines
493 B
Svelte

<script lang="ts">
import type { WithElementRef } from 'bits-ui';
import type { HTMLAttributes } from 'svelte/elements';
import { cn } from '$lib/utils.js';
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: WithElementRef<HTMLAttributes<HTMLTableSectionElement>> = $props();
</script>
<thead
bind:this={ref}
data-slot="table-header"
class={cn('bg-mantle border-surface-1 [&_tr]:border-b', className)}
{...restProps}
>
{@render children?.()}
</thead>