Dunlin is a lightweight, self-hosted CDN for personal projects.
at master 367 B view raw
1<script setup lang="ts"> 2import type { HTMLAttributes } from 'vue' 3import { cn } from '@/lib/utils' 4 5const props = defineProps<{ 6 class?: HTMLAttributes['class'] 7}>() 8</script> 9 10<template> 11 <tr 12 data-slot="table-row" 13 :class="cn('hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors', props.class)" 14 > 15 <slot /> 16 </tr> 17</template>