Files
gpx.studio/website/src/lib/components/ui/calendar/calendar-months.svelte
T

20 lines
478 B
Svelte
Raw Normal View History

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