Skip to content
Eskais UI

Layout

Resizable

UI SDK Resizable: panels with named separator handles that move with the pointer or arrow keys, collapse with Enter and can save their layout.

Example

Files
Editor

Installation

npx shadcn@latest add @eskais/resizable

Usage

Import
import { createResizableController, Resizable, ResizableHandle, ResizablePanel } from "@/components/ui/resizable"

API reference

ResizableHandle

PropTypeDefault
aria-labelrequiredstring–
withGripbooleanfalse

Also takes every prop of UI SDK ResizableHandle.

Other exports

createResizableControllertype ResizableHandlePropstype ResizableControllertype ResizableSizetype ResizableStorage

Accessibility

  • Each handle is a separator named by aria-label that moves with arrow keys; Enter collapses a collapsible panel.

Agent actions

Agents set the layout as percentages, like "30,70".

Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.