# Resizable

Use resizable for split layouts. Built on PaneForge. Compose `PaneGroup` + `Pane` + `Handle`. Set
`direction` to `horizontal` or `vertical`. Pass `withHandle` on `Handle` for a visible grip.

```svelte
<script lang="ts">
	import * as Resizable from '~/components/resizable';
</script>

<Resizable.PaneGroup direction="horizontal" class="max-w-md rounded-lg border">
	<Resizable.Pane defaultSize={50}>
		<div class="flex h-[200px] items-center justify-center p-6">
			<span class="font-semibold">One</span>
		</div>
	</Resizable.Pane>
	<Resizable.Handle withHandle />
	<Resizable.Pane defaultSize={50}>
		<div class="flex h-[200px] items-center justify-center p-6">
			<span class="font-semibold">Two</span>
		</div>
	</Resizable.Pane>
</Resizable.PaneGroup>
```