SplitPane
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-panelsimport { SplitPane } from '@stackunseen/ui/layout';@stackunseen/ui/styles.cssUsage 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?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
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