Files
hypergolic/src/lib/components/ui/table/table-row.svelte
Bob f139ec8d39 problem: merits and satflow graph doesn't highlight on hover
solution: trigger the `toggleDataPointSelection` method when the table row is hovered

resolve https://github.com/nostrocket/hypergolic/issues/76
2024-08-20 17:26:37 +08:00

26 lines
490 B
Svelte

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