frontend/src/lib/components/shadcn/Table/table.svelte
MuslemRahimi 568055f89e ui fixes
2024-07-19 23:46:27 +02:00

15 lines
411 B
Svelte

<script lang="ts">
import type { HTMLTableAttributes } from "svelte/elements";
import { cn } from "$lib/utils.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", className)} {...$$restProps}>
<slot />
</table>
</div>