Resizable

Panels that share a row or a column and can be resized by dragging the divider between them — a list beside its detail, an editor over its output.

tsx
import {
  ResizablePanelGroup,
  ResizablePanel,
  ResizableHandle,
} from "@pestoui/core"

Two panels

defaultSize takes a string for a percentage — a bare number is read as pixels. withHandle draws the grip; without it the divider is a bare hairline. The handle is focusable and moves with the arrow keys.

Agents
Run detail

Props

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"On ResizablePanelGroup. Panels side by side, or stacked.
defaultSizenumber | string—On ResizablePanel. Starting size. A number is pixels; a string is a percentage ("40%", or "40") or any CSS length.
minSize / maxSizenumber | string—On ResizablePanel. Limits the drag. Same units as defaultSize.
collapsibleboolean—On ResizablePanel. Lets the panel snap shut when dragged below its minimum.
withHandleboolean—On ResizableHandle. Draws the visible grip on the divider.

Pesto UI · 117 documented components