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

21 lines
460 B
Svelte
Raw Normal View History

2024-04-14 15:36:41 +02:00
<script lang="ts">
2025-06-08 16:32:41 +02:00
import type { HTMLAttributes } from "svelte/elements";
import type { WithElementRef } from "bits-ui";
import { cn } from "$lib/utils.js";
2024-04-14 15:36:41 +02:00
2025-06-08 16:32:41 +02:00
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
2024-04-14 15:36:41 +02:00
</script>
2025-06-08 16:32:41 +02:00
<div
bind:this={ref}
class={cn("flex flex-col space-y-2 text-center sm:text-left", className)}
{...restProps}
>
{@render children?.()}
2024-04-14 15:36:41 +02:00
</div>