1<script lang="ts">
 2	import { cn, type WithElementRef } from '$lib/components/ui/utils.js';
 3	import type { HTMLAttributes } from 'svelte/elements';
 4
 5	let {
 6		ref = $bindable(null),
 7		class: className,
 8		children,
 9		...restProps
10	}: WithElementRef<HTMLAttributes<HTMLTableRowElement>> = $props();
11</script>
12
13<tr
14	bind:this={ref}
15	data-slot="table-row"
16	class={cn(
17		'border-b transition-colors data-[state=selected]:bg-muted hover:[&,&>svelte-css-wrapper]:[&>th,td]:bg-muted/50',
18		className
19	)}
20	{...restProps}
21>
22	{@render children?.()}
23</tr>