---
title: "Resizable"
description: "Panels the user resizes by dragging a handle, horizontally or vertically, for split views and editors. Built on react-resizable-panels."
plan: Free
docs: https://ui.edbn.me/docs/components/resizable
---

# Resizable

Panels the user resizes by dragging a handle, horizontally or vertically, for split views and editors. Built on react-resizable-panels.

## Installation

```bash
npx shadcn@4.19.0 add https://ui.edbn.me/r/resizable.json
```

## Dependencies
- npm: react-resizable-panels@^4.12.3
- edbn: edbn-base

## Usage

```tsx examples/resizable-basic.tsx
"use client";
import {
  ResizableHandle,
  ResizablePanel,
  ResizablePanelGroup,
} from "@/components/ui/resizable";

export default function ResizableBasicPreview() {
  return (
    // The group fills its parent's height, so the parent sets it.
    <div className="h-48 w-full max-w-md">
      <ResizablePanelGroup
        orientation="horizontal"
        className="rounded-panel bg-card"
      >
        <ResizablePanel defaultSize={45}>
          <div className="grid h-full place-items-center">One</div>
        </ResizablePanel>
        <ResizableHandle withHandle />
        <ResizablePanel defaultSize={55}>
          <div className="grid h-full place-items-center">Two</div>
        </ResizablePanel>
      </ResizablePanelGroup>
    </div>
  );
}
```

## Files
- components/ui/resizable.tsx (51 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
