mirror of
https://github.com/khoaliber/dockhand.git
synced 2026-03-05 05:39:04 +00:00
20 lines
425 B
Svelte
20 lines
425 B
Svelte
<script lang="ts">
|
|
import type { HTMLAttributes } from "svelte/elements";
|
|
import { cn, type WithElementRef } from "$lib/utils.js";
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
children,
|
|
...restProps
|
|
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
</script>
|
|
|
|
<div
|
|
bind:this={ref}
|
|
class={cn("relative flex flex-col gap-4 md:flex-row", className)}
|
|
{...restProps}
|
|
>
|
|
{@render children?.()}
|
|
</div>
|