Files
gpx.studio/website/src/lib/components/ui/card/card-header.svelte

24 lines
571 B
Svelte
Raw Normal View History

2024-04-19 16:13:08 +02:00
<script lang="ts">
2025-06-21 21:07:36 +02:00
import { cn, type WithElementRef } from "$lib/utils.js";
2024-04-19 16:13:08 +02:00
import type { HTMLAttributes } from "svelte/elements";
2025-06-08 16:32:41 +02:00
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
2024-04-19 16:13:08 +02:00
</script>
2025-06-21 21:07:36 +02:00
<div
bind:this={ref}
data-slot="card-header"
class={cn(
"@container/card-header has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6",
className
)}
{...restProps}
>
2025-06-08 16:32:41 +02:00
{@render children?.()}
2024-04-19 16:13:08 +02:00
</div>