Files
personal-website/src/lib/components/ui/table/table-row.svelte
Stan Runge cb5fc9d095
All checks were successful
build / build (push) Successful in 47s
build / deploy (push) Successful in 17s
chore: flatten repo
2026-08-26 03:57:15 +00:00

24 lines
497 B
Svelte

<script lang="ts">
import type { HTMLAttributes } from "svelte/elements";
import type { WithElementRef } from "bits-ui";
import { cn } from "$lib/utils.js";
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: WithElementRef<HTMLAttributes<HTMLTableRowElement>> = $props();
</script>
<tr
bind:this={ref}
class={cn(
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
className
)}
{...restProps}
>
{@render children?.()}
</tr>