flbxcup/resources/js/components/ui/resizable/resizable-pane-group.svelte
2025-06-23 23:12:40 +02:00

20 lines
501 B
Svelte

<script lang="ts">
import * as ResizablePrimitive from "paneforge";
import { cn } from "@/lib/utils.js";
let {
ref = $bindable(null),
this: paneGroup = $bindable(),
class: className,
...restProps
}: ResizablePrimitive.PaneGroupProps & {
this?: ResizablePrimitive.PaneGroup;
} = $props();
</script>
<ResizablePrimitive.PaneGroup
bind:this={paneGroup}
data-slot="resizable-pane-group"
class={cn("flex h-full w-full data-[direction=vertical]:flex-col", className)}
{...restProps}
/>