frontend/src/lib/components/shadcn/table/table-row.svelte
2025-03-08 19:38:42 +01:00

24 lines
518 B
Svelte

<script lang="ts">
import type { HTMLAttributes } from "svelte/elements";
import { cn } from "$lib/utils";
type $$Props = HTMLAttributes<HTMLTableRowElement> & {
"data-state"?: unknown;
};
let className: $$Props["class"] = undefined;
export { className as class };
</script>
<tr
class={cn(
"border-b border-gray-300 dark:border-gray-800 transition-colors data-[state=selected]:bg-muted",
className,
)}
{...$$restProps}
on:click
on:keydown
>
<slot />
</tr>