Use ResizablePaneGroup with direction="horizontal" or vertical, ResizablePane (defaultSize 0–100), and ResizableHandle between panes. Drag the handle to resize.
Add this component
Run the command below in your project directory. When prompted, select the component(s) you want. The CLI will copy the CSS and component files.
Choose your package manager — click a tab to select, then copy the command.
npm pnpm yarn bun
bashbash
npx rizzo-css add
bashbash
pnpm dlx rizzo-css add
bashbash
npx rizzo-css add
bashbash
bunx rizzo-css add
Horizontal
Live Example
One
Two
Vertical
Header
Content
Usage
Usage
Full example for each framework (Astro, Vanilla, Svelte, Vue, React). Switch framework via View as or by clicking a Usage tab—both stay in sync.
Astro Vanilla Svelte Vue React
astroastro
---
import ResizablePaneGroup from '../components/astro/ResizablePaneGroup.astro';
import ResizablePane from '../components/astro/ResizablePane.astro';
import ResizableHandle from '../components/astro/ResizableHandle.astro';
---
<ResizablePaneGroup direction="horizontal" style="max-width: 28rem; height: 200px;">
<ResizablePane defaultSize={50}><div>One</div></ResizablePane>
<ResizableHandle />
<ResizablePane defaultSize={50}><div>Two</div></ResizablePane>
</ResizablePaneGroup>