unstale

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 init

@unstale/cli on npm

react-split-pane 350 changes

Breaking changes 21

  • The API was completely rewritten, so existing integrations may need migration.

    3.0.0release notes

  • Use defaultSize on Pane; it replaces SplitPane-level sizing and the v2.x initialSize prop. Values may be numbers or unit strings.

    3.0.0upgrade guide

  • Replaces split; horizontal arranges panes side-by-side and vertical stacks them, reversing the v0.1.x terminology.

    3.0.0upgrade guide

  • Use dividerStyle in place of resizerStyle to style the divider.

    3.0.0upgrade guide

  • v3 drops support for IE11; use v0.1.x if IE11 support is required.

    3.0.0upgrade guide

  • Size constraints move from SplitPane to individual Pane components.

    3.0.0upgrade guide

  • Size constraints move from SplitPane to individual Pane components.

    3.0.0upgrade guide

  • Node.js 20 is now the minimum required runtime.

    3.0.0release notes

  • Replaces onChange and receives sizes plus an event.

    3.0.0upgrade guide

  • Replaces onDragFinished and receives sizes plus an event; its v2.x signature also changes.

    3.0.0upgrade guide

  • Replaces onDragStarted and receives a ResizeEvent object; its v2.x signature also changes.

    3.0.0upgrade guide

  • Pane is a named export used to wrap each SplitPane child and configure that pane.

    3.0.0upgrade guide

  • Style individual panes with Pane style instead of paneStyle, pane1Style, or pane2Style on SplitPane.

    3.0.0upgrade guide

  • The primary prop is removed; sizes are distributed proportionally when the container resizes.

    3.0.0upgrade guide

  • Use resizable in place of allowResize.

    3.0.0upgrade guide

  • Use the size prop on each Pane for controlled sizing.

    3.0.0upgrade guide

  • The SplitPane CSS class name changes from SplitPane to split-pane.

    3.0.0upgrade guide

  • The resizer CSS class name changes to split-pane-divider.

    3.0.0upgrade guide

  • Pane CSS class names change to split-pane-pane.

    3.0.0upgrade guide

  • Import SplitPane as a named export; v3 requires its children to be Pane components.

    3.0.0upgrade guide

  • The step prop now sets keyboard navigation increments rather than drag increments.

    3.0.0upgrade guide

Deprecations 1

  • This custom divider prop is deprecated but remains supported and delegates to onPointerDown internally.

    3.1.0release notes

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.

    3.3.0release notes

  • Resize callbacks now expose event.pointerType so applications can differentiate between mouse, touch, and pen input.

    3.2.0release notes

  • Custom dividers can use onPointerDown instead of separate mouse and touch handlers; pointer events provide unified mouse, touch, and pen input.

    3.1.0release notes

  • CSS variables provide an option for theming.

    3.0.0release notes

  • Import the Direction TypeScript type directly from react-split-pane.

    3.0.0upgrade guide

  • Provide a fully custom divider component.

    3.0.0upgrade guide

  • Set a custom class name for the divider.

    3.0.0upgrade guide

  • Import the DividerProps TypeScript type directly from react-split-pane.

    3.0.0upgrade guide

  • Separate keyboard and persistence utilities are available as new exports.

    3.0.0release notes

  • SplitPane supports two or more panes natively, without nesting.

    3.0.0upgrade guide

  • Import the PaneProps TypeScript type directly from react-split-pane.

    3.0.0upgrade guide

  • Resize callbacks receive an event containing pane sizes, the input source, and the original DOM event.

    3.0.0upgrade guide

  • Import the Size TypeScript type directly from react-split-pane.

    3.0.0upgrade guide

  • Set snap positions for dragging.

    3.0.0upgrade guide

  • Set the sensitivity for snapping to drag positions.

    3.0.0upgrade guide

  • Import the SplitPaneProps TypeScript type directly from react-split-pane.

    3.0.0upgrade guide

  • Use the hook from react-split-pane/persistence to persist pane sizes.

    3.0.0upgrade guide

Performance 1

  • Tree-shakeable ESM and CJS builds reduce bundle size.

    3.0.0release notes

Behavior and default changes 3

Tooling 2

  • Added a single command to run TypeScript type checking, ESLint, Prettier formatting, and Vitest tests.

    3.0.4release notes

  • Complete type definitions are included for TypeScript projects.

    3.0.0release notes

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.

    3.3.0release notes

  • Custom dividers using the deprecated onMouseDown and onTouchStart props can be dragged again.

    3.3.0release notes

  • Only the pane before the dragged divider snaps; the pane after it absorbs the difference, preventing the layout from drifting.

    3.3.0release notes

  • In controlled mode, panes with pixel sizes maintain fixed sizes when the browser window or container resizes instead of scaling proportionally.

    3.0.5release notes

  • The package works with React 17, 18, and 19.

    3.0.0release notes