110k
New

Resizable

Accessible resizable panel groups and layouts with keyboard support.

Component resizable-demo not found in registry.

About

The Resizable component is built on top of react-resizable-panels by bvaughn.

Installation

pnpm dlx createui@latest add resizable

Usage

import {
  ResizableHandle,
  ResizablePanel,
  ResizablePanelGroup,
} from "@/components/ui/resizable"
<ResizablePanelGroup direction="horizontal">
  <ResizablePanel>One</ResizablePanel>
  <ResizableHandle />
  <ResizablePanel>Two</ResizablePanel>
</ResizablePanelGroup>

Examples

Vertical

Use direction="vertical" for vertical resizing.

Component resizable-vertical not found in registry.

Handle

Use the withHandle prop on ResizableHandle to show a visible handle.

Component resizable-handle not found in registry.

API Reference

See the react-resizable-panels documentation.