Epicenter
Local-first, open source apps
One
Two
Three
About
The Resizable component is built on top of PaneForge by Huntabyte. Visit the PaneForge documentation for all the available props and abilities of the Resizable component.
Installation
Install paneforge:
Copy and paste the following code into your project.
Usage
<script lang="ts">
import * as Resizable from "$lib/components/ui/resizable/index.js";
</script> <Resizable.PaneGroup direction="horizontal">
<Resizable.Pane>One</Resizable.Pane>
<Resizable.Handle />
<Resizable.Pane>Two</Resizable.Pane>
</Resizable.PaneGroup> Vertical
Use direction="vertical" for vertical resizing.
Header
Content
Handle
Use the withHandle prop on Resizable.Handle to show a visible handle.
Sidebar
Content