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

24 lines
553 B
Svelte

<script lang="ts">
import { cn, type WithElementRef } from '$lib/utils.js';
import type { HTMLThAttributes } from 'svelte/elements';
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: WithElementRef<HTMLThAttributes> = $props();
</script>
<th
bind:this={ref}
data-slot="table-head"
class={cn(
'h-9 bg-clip-padding px-2 text-start align-middle text-cladd-xs font-medium whitespace-nowrap text-cladd-fg-soft uppercase [&:has([role=checkbox])]:pe-0',
className
)}
{...restProps}
>
{@render children?.()}
</th>