ortaui
  1. Components
  2. Layout

Resizable

react-resizable-panels (v4) with a one-pixel border handle, a wider hit area and an optional pill grip. Keyboard resize shows the focus outline on the handle.

Installation#

npx shadcn add @ortaui/resizable

Examples#

Horizontal with grip#

One
Two

Vertical and nested, plain handle#

Sidebar
Header
Content

API reference#

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"On ResizablePanelGroup.
defaultSize / minSize / maxSizenumber | string-On ResizablePanel. Numbers are pixels, strings are percent ("40%").
withHandleboolean-ResizableHandle: show a pill grip.