mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-03-27 09:46:36 +00:00
21 lines
441 B
Svelte
21 lines
441 B
Svelte
<script lang="ts">
|
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
import { cn } from '$lib/utils/style.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 data-[state=selected]:bg-muted', className)}
|
|
{...$$restProps}
|
|
on:click
|
|
on:keydown
|
|
>
|
|
<slot />
|
|
</tr>
|