Split Pane

The SplitPane component divides a surface into resizable start and end panes.

Usage & Examples

Editor Layout

Navigation
Preview panel
editor-layout.tsx
<SplitPane
  startPane={<strong>Navigation</strong>}
  endPane={<span>Preview panel</span>}
  defaultSize={42}
/>

Props API

26 props
Columns
Split Pane props API
Default
Description
childrenReactNodeNopropsFallback children. When two children are supplied, they are used as start/end panes.
classNamestringNostylingAdditional class name for the root.
data-testidstringNotestingBackward-compatible alias for test ID attributes.
defaultSizenumberNoprops50Initial size of the start pane as a percentage.
disabledbooleanNopropsfalseWhether the split pane is disabled.
endPaneReactNodeNopropsContent rendered in the second pane.
endPaneClassNamestringNopropsAdditional class name for the end pane.
glassbooleanNopropsconfigured default glass setting (fallback: false)Whether to render glass styling.
loadingbooleanNopropsfalseWhether the split pane should display a loading state.
maxSizenumberNoprops90Maximum start pane size as a percentage.
minSizenumberNoprops10Minimum start pane size as a percentage.
onSizeChange((size: number) => void)NoeventsCallback fired when the pane size changes.