SplitPane

Markdown

Two panes side by side that you can resize, also from the keyboard, stacking on small screens.

Used in Agent Workbench and Coding Studio.

Use it for
Two resizable panes, such as code and preview.
Not for
Fixed layouts that never resize. Try WorkspaceShell.

SplitPane preview

Loading example…

Installation

npm install @stackunseen/ui react-resizable-panels
import { SplitPane } from '@stackunseen/ui/layout';
Styles: @stackunseen/ui/styles.css

Usage and props

Keep the sizes in your app and give it a container with a set height. Collapsing a pane removes its content, so keep drafts above it.

Supported inputs

This is the public signature used by this example. Open Code to see how the values and callbacks fit together.

label · primary · secondary · sizes: readonly [number, number] · onSizesChange? · presentation? · orientation? · disabled?
How state and callbacks work
All props

Loading…

For your coding agent

Give the agent this page instead of a screenshot. The prompt wraps the page with the install and import lines and the rule that your server, not a click, completes an action.

Contract
label · primary · secondary · sizes: readonly [number, number] · onSizesChange? · presentation? · orientation? · disabled?
Keeps honest
Keep the sizes in your app and give it a container with a set height. Collapsing a pane removes its content, so keep drafts above it.
MCP
read_component "SplitPane" on the docs endpoint
Open the Markdown file

Keyboard and customization

Keyboard

Tab reaches the named separator. Arrow keys resize along its orientation; keyboard resizing requests controlled sizes just like pointer resizing.

Customization

Change shared colors, spacing, corners and icons with the theme. Use the component's supported props to adapt its content and layout. Customization guide and Theme Studio