UI
Resizable
Drag-to-resize split panels using react-resizable-panels with horizontal or vertical layout.
Quick Preview
Panel A
Left panel content.
Panel B
Right panel content.
Installation
npm install react-resizable-panels
// Copy component fromsrc/components/ui/Resizable.tsx
Usage
import Resizable from '@/components/ui/Resizable'<Resizabledirection="horizontal"panels={[{ defaultSize: 30, minSize: 15, children: <Sidebar /> },{ defaultSize: 70, minSize: 40, children: <MainContent /> },]}/>
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
direction | 'horizontal' | 'vertical' | 'horizontal' | Split direction |
panels* | ResizablePanel[] | - | Panel configs with defaultSize and children |