Search

Search documentation

Resizable

Accessible resizable panel groups and layouts with keyboard support.

Installation

›pnpm dlx shadcn@latest add @evolphin/resizable

Usage

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

Type Definitions

interface ResizablePanelGroupProps {
  /** The direction of the panel group */
  direction: "horizontal" | "vertical";
ResizablePanelGroupProps.direction: "horizontal" | "vertical"

The direction of the panel group

}

Examples

Default

One
Two
Three

Vertical

Header
Content

Handle

Sidebar
Content

API Reference

ResizablePanelGroup

PropTypeDefaultDescription
direction`"horizontal" \"vertical"`-
classNamestring-Additional CSS classes

ResizablePanel

PropTypeDefaultDescription
defaultSizenumber-The default size of the panel in percentage.
minSizenumber-The minimum size of the panel in percentage.
maxSizenumber-The maximum size of the panel in percentage.
classNamestring-Additional CSS classes

ResizableHandle

PropTypeDefaultDescription
withHandlebooleanfalseWhether to show a visual handle icon.
classNamestring-Additional CSS classes

On this page