1<script lang="ts">
2 import { cn, type WithElementRef } from '$lib/components/ui/utils.js';
3 import type { HTMLThAttributes } from 'svelte/elements';
4
5 let {
6 ref = $bindable(null),
7 class: className,
8 children,
9 ...restProps
10 }: WithElementRef<HTMLThAttributes> = $props();
11</script>
12
13<th
14 bind:this={ref}
15 data-slot="table-head"
16 class={cn(
17 'h-10 bg-clip-padding px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pe-0',
18 className
19 )}
20 {...restProps}
21>
22 {@render children?.()}
23</th>