Files
pocket-id/frontend/src/lib/components/ui/table/table.svelte
Elias Schneider eaff977b22 initial commit
2024-08-12 11:24:22 +02:00

16 lines
415 B
Svelte

<script lang="ts">
import type { HTMLTableAttributes } from "svelte/elements";
import { cn } from "$lib/utils/style.js";
type $$Props = HTMLTableAttributes;
let className: $$Props["class"] = undefined;
export { className as class };
</script>
<div class="relative w-full overflow-auto">
<table class={cn("w-full caption-bottom text-sm table-auto", className)} {...$$restProps}>
<slot />
</table>
</div>