npm / react-split-pane
react-split-pane
What changed in react-split-pane 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
21 breaking1 deprecations17 new APIs and options1 performance3 behavior and defaults2 tooling5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initreact-split-pane 350 changes
Breaking changes 21
The API was completely rewritten, so existing integrations may need migration.
Use defaultSize on Pane; it replaces SplitPane-level sizing and the v2.x initialSize prop. Values may be numbers or unit strings.
Replaces split; horizontal arranges panes side-by-side and vertical stacks them, reversing the v0.1.x terminology.
Use dividerStyle in place of resizerStyle to style the divider.
v3 drops support for IE11; use v0.1.x if IE11 support is required.
Size constraints move from SplitPane to individual Pane components.
Size constraints move from SplitPane to individual Pane components.
Node.js 20 is now the minimum required runtime.
Replaces onChange and receives sizes plus an event.
Replaces onDragFinished and receives sizes plus an event; its v2.x signature also changes.
Replaces onDragStarted and receives a ResizeEvent object; its v2.x signature also changes.
Pane is a named export used to wrap each SplitPane child and configure that pane.
Style individual panes with Pane style instead of paneStyle, pane1Style, or pane2Style on SplitPane.
The primary prop is removed; sizes are distributed proportionally when the container resizes.
Use resizable in place of allowResize.
Use the size prop on each Pane for controlled sizing.
The SplitPane CSS class name changes from SplitPane to split-pane.
The resizer CSS class name changes to split-pane-divider.
Pane CSS class names change to split-pane-pane.
Import SplitPane as a named export; v3 requires its children to be Pane components.
The step prop now sets keyboard navigation increments rather than drag increments.
Deprecations 1
This custom divider prop is deprecated but remains supported and delegates to onPointerDown internally.
New APIs and options 17
A new prop lets you replace built-in snapping with a custom function that receives the pane size, snap points, and tolerance.
Resize callbacks now expose event.pointerType so applications can differentiate between mouse, touch, and pen input.
Custom dividers can use onPointerDown instead of separate mouse and touch handlers; pointer events provide unified mouse, touch, and pen input.
CSS variables provide an option for theming.
Import the Direction TypeScript type directly from react-split-pane.
Provide a fully custom divider component.
Set a custom class name for the divider.
Import the DividerProps TypeScript type directly from react-split-pane.
Separate keyboard and persistence utilities are available as new exports.
SplitPane supports two or more panes natively, without nesting.
Import the PaneProps TypeScript type directly from react-split-pane.
Resize callbacks receive an event containing pane sizes, the input source, and the original DOM event.
Import the Size TypeScript type directly from react-split-pane.
Set snap positions for dragging.
Set the sensitivity for snapping to drag positions.
Import the SplitPaneProps TypeScript type directly from react-split-pane.
Use the hook from react-split-pane/persistence to persist pane sizes.
Performance 1
Tree-shakeable ESM and CJS builds reduce bundle size.
Behavior and default changes 3
Accessibility improvements add ARIA support.
Accessibility improvements add keyboard navigation.
The component works on mobile devices with touch support.
Tooling 2
Added a single command to run TypeScript type checking, ESLint, Prettier formatting, and Vitest tests.
Complete type definitions are included for TypeScript projects.
Fixes and other changes 5
When a controlled pane size and its content change together, the new size is applied in the same frame to avoid flicker.
Custom dividers using the deprecated onMouseDown and onTouchStart props can be dragged again.
Only the pane before the dragged divider snaps; the pane after it absorbs the difference, preventing the layout from drifting.
In controlled mode, panes with pixel sizes maintain fixed sizes when the browser window or container resizes instead of scaling proportionally.
The package works with React 17, 18, and 19.