mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-28 18:53:12 +00:00
22 lines
430 B
Svelte
22 lines
430 B
Svelte
<script lang='ts'>
|
|
import type { HTMLTdAttributes } from 'svelte/elements'
|
|
|
|
import { cn } from '$lib/utils.js'
|
|
|
|
type $$Props = HTMLTdAttributes
|
|
|
|
let className: $$Props['class'] = undefined
|
|
export { className as class }
|
|
</script>
|
|
|
|
<td
|
|
class={cn(
|
|
'p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',
|
|
className
|
|
)}
|
|
{...$$restProps}
|
|
on:click
|
|
on:keydown
|
|
>
|
|
<slot />
|
|
</td>
|