Resizable
A group of panels that can be resized by dragging handles between them.
uilucide-reactreact-resizable-panels@^2.1.9
Installation
$npx futureuikit add resizable
Import
import { ResizablePanelGroup } from "@/components/ui/resizable"
Named Keys & Props
Pass these exact named keys as props on <ResizablePanelGroup />. Click any color pill to copy the prop.
colorDefault is "default"(Black & White)shapeCorner shape"default""square""rounded""sharp"spacingInner spacing"default""2x""4x""6x""8x"Usage Example
A basic implementation example to get you started.
Example Implementation
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "@/components/ui/resizable";
export default function Example() {
return (
<ResizablePanelGroup direction="horizontal">
<ResizablePanel>Panel A</ResizablePanel>
<ResizableHandle />
<ResizablePanel>Panel B</ResizablePanel>
</ResizablePanelGroup>
);
}Features
Key capabilities and highlights.
Key Capabilities
- ◆Supports horizontal and vertical panel layouts.
- ◆Drag handles provide intuitive resize interaction.
- ◆Panels can have minimum and maximum size constraints.
Notes
Important implementation details to consider.
Implementation Details
- ◆Install: Run 'npx futureuikit add resizable'.
- ◆Import: 'import { ResizablePanelGroup, ResizablePanel, ResizableHandle } from "@/components/ui/resizable";'
- ◆Usage: Place ResizablePanel elements inside a ResizablePanelGroup separated by ResizableHandle.