boredgame/src/lib/components/ui/card/card.svelte

17 lines
379 B
Svelte
Raw Normal View History

2023-09-14 01:43:22 +00:00
<script lang="ts">
import type { HTMLAttributes } from "svelte/elements";
import { cn } from "$lib/utils/ui.js";
2023-09-14 01:43:22 +00:00
type $$Props = HTMLAttributes<HTMLDivElement>;
let className: $$Props["class"] = undefined;
export { className as class };
</script>
<div
class={cn("bg-card text-card-foreground rounded-lg border shadow-sm", className)}
2023-09-14 01:43:22 +00:00
{...$$restProps}
>
<slot />
</div>