Spaces:
Paused
Paused
Download web/src/components/ui/table/TableCell.vue from stremio-db/a: direct link, hf CLI and curl.
- Browser
- Download file 432 Bytes
-
https://huggingface.co/spaces/stremio-db/a/resolve/main/web/src/components/ui/table/TableCell.vue
- Command line
-
hf download hf://spaces/stremio-db/a/web/src/components/ui/table/TableCell.vue
-
curl -L -o TableCell.vue https://huggingface.co/spaces/stremio-db/a/resolve/main/web/src/components/ui/table/TableCell.vue
432 Bytes
| <script setup lang="ts"> | |
| import type { HTMLAttributes } from "vue" | |
| import { cn } from "@/lib/utils" | |
| const props = defineProps<{ | |
| class?: HTMLAttributes["class"] | |
| }>() | |
| </script> | |
| <template> | |
| <td | |
| data-slot="table-cell" | |
| :class=" | |
| cn( | |
| 'p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]', | |
| props.class, | |
| ) | |
| " | |
| > | |
| <slot /> | |
| </td> | |
| </template> | |