unstale

npm / react-resizable-panels

react-resizable-panels

What changed in react-resizable-panels 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-04.

19 breaking5 deprecations104 new APIs and options7 performance29 behavior and defaults95 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

react-resizable-panels 4257 changes

Breaking changes 18

  • Activating the selected tab of an expanded collapsible or floating tabset now collapses it and reports "collapse", unless the workspace is disabled.

    4.24.0release notes

  • The prop now applies to all tabs that aren't visible, including selected tabs in collapsed or covered tabsets, which are unmounted or hidden according to its setting.

    4.23.0release notes

  • The drop indicator is no longer a child of data-tab-panels, so selectors targeting it as a child of those panels should be updated.

    4.19.0release notes

  • The tab argument may be undefined when dragging a tabset without tabs, so callbacks that read it should check first.

    4.17.0release notes

  • In a Workspace without separators, pressing a tab at the tabset edge prioritizes resizing over dragging the tab.

    4.16.1release notes

  • If restoring a panel's most recent size would require collapsing another panel, expands to the largest size that fits instead, provided it is at least minSize.

    4.15.0release notes

  • useDefaultGridLayout now persists the requested layout instead of the constrained layout.

    4.14.1release notes

  • useDefaultLayout now persists the requested layout instead of the constrained layout.

    4.14.1release notes

  • Separator no longer retains focus after a drag.

    4.13.2release notes

  • Panel replaces the aria-disabled attribute with data-disabled.

    4.7.6release notes

  • Adds a new Group callback for layout changes.

    4.4.0release notes

  • Pointer-event layout changes trigger the callback only after the pointer is released, reducing callback frequency for tasks like saving layouts.

    4.4.0release notes

  • Persistent layouts no longer use PanelGroup autoSaveId directly.

    4.0.0release notes

  • PanelGroup was renamed to Group to align with the version 4 API.

    4.0.0release notes

  • PanelGroup was replaced by Group in version 4.

    4.0.0release notes

  • PanelResizeHandle was replaced by Separator in version 4.

    4.0.0release notes

  • useGroupRef replaces the imperative group ref type and creates a group reference.

    4.0.0release notes

  • usePanelRef replaces the imperative panel ref type and creates a panel reference.

    4.0.0release notes

Deprecations 5

  • Deprecated on the drag preview; the notes recommend opening popout windows from a button instead.

    4.22.0release notes

  • Deprecated because browsers do not reliably report where an external drag ends and may block popups opened then; use a button to open popout windows instead.

    4.22.0release notes

  • Deprecated along with onTearOff; the notes recommend opening popout windows from a button instead.

    4.22.0release notes

  • The previous callback remains supported but is marked deprecated.

    4.4.0release notes

  • The groupId parameter is deprecated in favor of id because the Group does not need a matching id.

    4.0.13release notes

New APIs and options 104

  • Add the size option to addTab for specifying the size when adding a tab.

    4.23.0release notes

  • Add the target option to addTab, allowing a tab to be added in a new tabset relative to another one.

    4.23.0release notes

  • The prop can now accept functions of the tabset, tab, or split being styled and its state, enabling styling based on data.

    4.23.0release notes

  • Add a prop that tells the workspace where a dragged tab came from; this information is passed to disableDrop and onModelChanged.

    4.23.0release notes

  • Add a prop that delays mounting a tab's content until the tab is first shown.

    4.23.0release notes

  • Add a prop that can block changes the user makes, such as closing a tab with unsaved changes.

    4.23.0release notes

  • Add the region option to ParentTabset.addTab for placing a tab in a specified region.

    4.23.0release notes

  • Add the size option to ParentTabset.addTab for specifying the size when adding a tab.

    4.23.0release notes

  • Add a method to set the sizes of a split's children by id, for example to apply a saved preset.

    4.23.0release notes

  • Use this attribute to opt elements in a Workspace tab out of selecting the tab or starting a drag when pressed.

    4.22.1release notes

  • Workspace can create tabs from browser drag-and-drop, including draggable elements or files.

    4.22.0release notes

  • Adds a reason used to report tabs or tabsets copied during drops.

    4.22.0release notes

  • Adds a Workspace prop so tabs dropped while Option on macOS or Ctrl is held are copied rather than moved.

    4.22.0release notes

  • Adds a Workspace prop so tabsets dropped while Option on macOS or Ctrl is held are copied rather than moved.

    4.22.0release notes

  • Adds a method for getting the ids of a tabset's tabs that are scrolled out of view.

    4.22.0release notes

  • Adds a selectTab method to useParentTabset.

    4.22.0release notes

  • Workspace can start dragging a new tab from outside the workspace, such as from a palette of widgets.

    4.22.0release notes

  • Adds a method for subscribing to changes in which tabset tabs are scrolled out of view.

    4.22.0release notes

  • Opens Workspace tabs in popup windows, copies the page's styles, and docks tabs back when the windows close.

    4.22.0release notes

  • Returns the ids of tabs in a tabset that are scrolled out of view, for uses such as an overflow menu.

    4.22.0release notes

  • The children, className, style, and title props of TabCloseButton, TabsetDragHandle, TabsetCollapseButton, and TabsetMaximizeButton can be functions of the component's state.

    4.21.0release notes

  • Adds a button that collapses or expands its containing tabset, exposes aria-expanded and aria-controls, and renders nothing when the action is unavailable.

    4.21.0release notes

  • Adds a button that maximizes or restores its containing tabset, exposes aria-pressed, and renders nothing when the action is unavailable.

    4.21.0release notes

  • Workspace supports floating tabsets, listed in the model's floating field. Create them with floatTab and floatTabset, collapse them with collapseTabset, and dock them with moveTabset.

    4.20.0release notes

  • TabDropTarget has a new edge variant without tabsetId; check for tabsetId before reading target.tabsetId.

    4.20.0release notes

  • The drag preview has this attribute while releasing the pointer would tear off the tab.

    4.19.0release notes

  • Keeps a workspace's drags within its copy of the application.

    4.19.0release notes

  • The callback receives source as local for workspace-internal drags or external for drags from another workspace in the group.

    4.19.0release notes

  • Enables dragging tabs and tabsets between workspaces in the same group, including across windows and application copies; transferred tabs keep their id and data.

    4.19.0release notes

  • Model changes caused by tearing off tabs or transferring them between workspaces use the new reasons tear-off and transfer.

    4.19.0release notes

  • Workspace calls this prop when a tab or tabset is dropped outside the window; returning true removes it and reports a tear-off model change.

    4.19.0release notes

  • The drag preview props receive an isTearOff flag while releasing the pointer would tear off the tab.

    4.19.0release notes

  • Adds an imperative method for getting the unused space in each tabset's tab list.

    4.18.0release notes

  • Adds a maximum height for Workspace tabset content areas, also available through updateTabset; maximum sizes require absolute units and may be ignored when no other split can take the remaining space.

    4.18.0release notes

  • Adds a maximum width for Workspace tabset content areas, also available through updateTabset; maximum sizes require absolute units and may be ignored when no other split can take the remaining space.

    4.18.0release notes

  • Adds a function that checks and tidies a model like the defaultModel prop and returns null for values that aren't models.

    4.18.0release notes

  • The mapTab option replaces saved tabs with the app's current versions or removes them, enabling restoration of layouts saved by older app versions.

    4.18.0release notes

  • Adds a method for subscribing to tab-list free-space updates, including from a toolbar rendered outside the Workspace.

    4.18.0release notes

  • Sets the tab list's unused space as a CSS custom property, updated before the browser paints.

    4.18.0release notes

  • Adds isCollapsedToFit to distinguish tabsets collapsed to fit from tabsets collapsed in the model.

    4.18.0release notes

  • Adds a hook that returns the unused space in each tabset's tab list, including negative values when tabs overflow.

    4.18.0release notes

  • Whether a tabset is collapsed is saved in the model.

    4.17.0release notes

  • A new method collapses a tabset.

    4.17.0release notes

  • A tabset with this new flag can collapse to just its header by dragging a separator past its minimum size or using collapseTabset; clicking a tab expands it.

    4.17.0release notes

  • The drag preview has this attribute, with a value of tab or tabset.

    4.17.0release notes

  • Elements within a collapsed tabset have this attribute.

    4.17.0release notes

  • A tabset being dragged has this attribute.

    4.17.0release notes

  • This new flag prevents dragging a tabset; a tabset also cannot be dragged if it contains a tab with this flag.

    4.17.0release notes

  • During a whole-tabset drag, the new tabset argument is set, and disableDrop is called for each dragged tab with the target that tab would be dropped at.

    4.17.0release notes

  • A new method expands a collapsed tabset.

    4.17.0release notes

  • A new imperative method supports moving tabsets.

    4.17.0release notes

  • A new prop supports rendering a tabset drag preview.

    4.17.0release notes

  • A TabsetDragHandle can be used to drag a tabset.

    4.17.0release notes

  • In recent selection mode, each tabset's recently selected tab IDs are saved in the model.

    4.17.0release notes

  • The hook now returns a collapse function.

    4.17.0release notes

  • The hook now returns an expand function.

    4.17.0release notes

  • The hook now returns an isCollapsed function.

    4.17.0release notes

  • The hook now returns an isCollapsed value.

    4.17.0release notes

  • The hook now returns an isCollapsible value.

    4.17.0release notes

  • The hook returns an isDragDisabled value to support tabset dragging.

    4.17.0release notes

  • This prop chooses the selected tab after the selected tab is closed or dragged to another tabset: the adjacent tab by default, or the tabset's most recently selected tab with recent.

    4.17.0release notes

  • Workspace classNames accepts a split entry for each split's Group, allowing its class to be customized.

    4.16.1release notes

  • Each split's Group now has a data-split attribute.

    4.16.1release notes

  • Each split's Group now has a data-split-id attribute.

    4.16.1release notes

  • Workspace styles accepts a split entry for each split's Group; its CSS gap adds space between tabsets and counts toward their minimum sizes.

    4.16.1release notes

  • Adds a prop for styling tabsets.

    4.16.0release notes

  • Adds an option to keep unselected tab content mounted by default, unmount it, or render it within a hidden React <Activity>.

    4.16.0release notes

  • Adds a prop for customizing empty tabsets.

    4.16.0release notes

  • Adds a prop for customizing tabs in a workspace.

    4.16.0release notes

  • Adds a prop for customizing tabset toolbars.

    4.16.0release notes

  • Adds an option for selected tabs' content to opt into server rendering.

    4.16.0release notes

  • Adds a component for tab customization.

    4.16.0release notes

  • Adds a hook for accessing the parent tab from content within a workspace.

    4.16.0release notes

  • Adds a hook for accessing the parent tabset from content within a workspace.

    4.16.0release notes

  • Adds a hook for accessing parent tabset state from content within a workspace.

    4.16.0release notes

  • Adds a hook for accessing parent tab state from content within a workspace.

    4.16.0release notes

  • Adds a hook for accessing the parent workspace from content within a workspace.

    4.16.0release notes

  • Adds a hook that returns the imperative API for an uncontrolled workspace.

    4.16.0release notes

  • Adds a component for rearrangeable tabsets that can be resized and maximized, with a serializable layout model and tab content that is not remounted when moved.

    4.16.0release notes

  • Access the nearest Grid, including its imperative API, without passing refs down; returns null outside a matching component.

    4.15.0release notes

  • Access the nearest Group, including its imperative API, without passing refs down; returns null outside a matching component. Within a Cell, returns the nearest Group outside of the Grid.

    4.15.0release notes

  • Access the nearest Panel, including its imperative API, without passing refs down; returns null outside a matching component.

    4.15.0release notes

  • onLayoutChanged metadata now includes requestedLayout, exposing the layout requested before constraints were applied.

    4.14.1release notes

  • Adds cells that can span multiple columns and rows in resizable two-dimensional layouts.

    4.14.0release notes

  • Adds Grid components for resizable two-dimensional layouts with row and column size constraints.

    4.14.0release notes

  • Adds optional gridlines that can span subsets of tracks to avoid spanning cells.

    4.14.0release notes

  • Adds a hook for default grid layout behavior.

    4.14.0release notes

  • Adds a callback ref hook for grids.

    4.14.0release notes

  • Adds a ref hook for grids.

    4.14.0release notes

  • Panels now support a configurable collapse threshold.

    4.13.0release notes

  • Resize preview mode is now customizable.

    4.13.0release notes

  • The callback now receives meta information indicating whether resizing was triggered by direct keyboard or mouse input.

    4.12.0release notes

  • The hook can now save layouts only when directly triggered by user interactions.

    4.12.0release notes

  • Adds a prop to turn off the double-click size reset behavior.

    4.9.0release notes

  • Automatically migrates legacy layouts to version 4 format, easing upgrades for existing persisted layouts.

    4.8.0release notes

  • Adds a Panel prop that lets panels retain their current pixel size when the parent Group is resized.

    4.7.0release notes

  • Panel and Separator components can now be disabled.

    4.6.0release notes

  • Group, Panel, and Separator components now expose displayName for a better debugging experience.

    4.2.1release notes

  • The onResize callback now receives prevPanelSize, simplifying collapse and expand detection.

    4.2.0release notes

  • The GroupImperativeHandle type is now exported for developers to use in application code.

    4.0.2release notes

  • The PanelImperativeHandle type is now exported for developers to use in application code.

    4.0.2release notes

  • Group accepts groupRef for imperative access.

    4.0.0release notes

  • Panel accepts panelRef for imperative access.

    4.0.0release notes

  • useDefaultLayout provides defaultLayout and onLayoutChange for persistent layouts.

    4.0.0release notes

Performance 7

  • Panels without an onResize prop are no longer observed, improving resizing and dragging performance.

    4.19.1release notes

  • Dragging a Workspace tab only re-renders what changes, improving dragging performance.

    4.19.1release notes

  • Mount performance improves for groups with many panels by skipping redundant constraint recalculations and subscriber notifications when a Panel's disabled prop has not changed.

    4.14.7release notes

  • Available group size is calculated once per hit-testing pass instead of once per hit region.

    4.13.1release notes

  • Panel avoids unnecessary re-renders in response to mouse-hover state.

    4.5.4release notes

  • Panel now applies flex-grow inline instead of using a CSS variable on the parent Group, reducing forced reflow and improving rendering performance.

    4.3.2release notes

  • Debounces calls to storage.setItem by 150ms, reducing the frequency of storage updates.

    4.0.12release notes

Behavior and default changes 29

  • Workspace tabs and tabsets can be dropped at workspace edges beside other tabsets. These targets are enabled by default and can be disabled with disableDrop.

    4.20.0release notes

  • Development-only warnings are removed from production builds.

    4.19.1release notes

  • With a dragGroup, disableDrop is called when the drop target changes instead of on every dragover event.

    4.19.1release notes

  • The same indicator element can animate between tabsets; while the drag is outside any tabset's panels, it stays in place with no data-region attribute and opacity 0.

    4.19.0release notes

  • Dropping a tab or tabset onto an empty workspace now fills its tabset, keeping that tabset's id and data, instead of showing a half-size edge indicator.

    4.19.0release notes

  • In right-to-left layouts, dragging tabs inserts them where dropped, arrow keys move focus to the tab on that side, and edge drops place tabs or tabsets on the corresponding screen side.

    4.18.1release notes

  • The default tabset drag preview now appends the number of other dragged tabs after the selected tab's title; custom preview props and single-tab drags retain the previous preview.

    4.18.0release notes

  • Any element with this attribute can serve as a tabset drag handle.

    4.17.0release notes

  • Tabsets with this flag can be moved but not merged when dragged.

    4.17.0release notes

  • The callback now reports collapse and expand reasons.

    4.17.0release notes

  • Workspace tabsets can be dragged by empty header space or a drag handle. Dropping on an edge moves a tabset; dropping on a center or tab list merges its tabs into the target.

    4.17.0release notes

  • Workspace interactions support mouse, touch, and keyboard input.

    4.16.0release notes

  • Imperative resize, collapse, and expand calls and separator double-clicks now take or give space to the nearest panels that can absorb it on either side, preferring changes that do not collapse or expand other panels.

    4.15.0release notes

  • The imperative Panel API now supports non-percentage sizes.

    4.7.3release notes

  • Default overflow styles changed to support shadows.

    4.7.1release notes

  • Imperative Panel and Group APIs now explicitly override disabled status when resizing, supporting conditionally disabled groups.

    4.6.1release notes

  • Pre-collapsed panels expand when dragged past the halfway point, making collapse and expansion behavior more consistent.

    4.5.3release notes

  • Separator and Panel edge hit target size decreases by default and becomes configurable through a new Group prop.

    4.5.2release notes

  • Double-clicking a Separator resets its associated Panel to its default size when one is configured.

    4.5.0release notes

  • The hook now uses the new layout-change callback while retaining support for the old callback.

    4.4.0release notes

  • Drag interactions call event.preventDefault only for the primary button.

    4.3.0release notes

  • Group now applies default width, height, and overflow styles, which can be overridden with style.

    4.3.0release notes

  • The storage parameter now defaults to localStorage when undefined.

    4.2.2release notes

  • The hook now supports saving and restoring multiple Panel layouts.

    4.1.0release notes

  • Resizable panels can render into a different Window, such as a popup or frame, by accessing globals through the element's owner document.

    4.0.14release notes

  • Expanded support for fixed-size elements, allowing developers to use more fixed-size elements with the library.

    4.0.10release notes

  • Layout-change events are deferred when a Group is within a hidden DOM subtree, improving developer experience.

    4.0.9release notes

  • Size constraints now support pixels, percentages, REMs/EMs, and more.

    4.0.0release notes

  • Support for server-rendering, including Server Components, has been expanded.

    4.0.0release notes

Fixes and other changes 94

  • Fixes a Separator behind an open popover being draggable, including popovers rendered inside of the Group.

    4.24.1release notes

  • Tabs dropped at workspace edges lined by a collapsed tabset are added to that tabset; these targets have an index, so edge-based disableDrop checks do not reject them.

    4.24.0release notes

  • In a disabled workspace, clicking a tab or empty header space of a collapsed tabset no longer expands it; clicking a tab only selects it.

    4.24.0release notes

  • Moving a tab no longer reloads its iframes, pauses its media, or blurs focused elements in browsers that support moveBefore.

    4.24.0release notes

  • Panels and Grid tracks no longer resize unexpectedly when constraints or groupResizeBehavior change after the group has been resized.

    4.22.1release notes

  • Collapsed panels and Grid tracks now expand to their pre-collapse pixel size when the group was resized while they were collapsed.

    4.22.1release notes

  • Form controls, their labels, editable content, and elements with a form control role within a Workspace tab no longer select the tab or start dragging it when pressed. Use data-tab-ignore to opt other elements out.

    4.22.1release notes

  • A selected Workspace tab is scrolled into view when its tab list overflows.

    4.22.0release notes

  • Fixes panels drifting by a fraction of a pixel when using preserve-pixel-size with fractional panel sizes, caused by measuring a Group as the sum of rounded panel sizes.

    4.21.0release notes

  • Tab-list overflow attributes are now set correctly while the list is scrolled in right-to-left layouts.

    4.18.1release notes

  • In right-to-left layouts, the left and right regions passed to moveTab and moveTabset refer to sides of the screen.

    4.18.1release notes

  • Tab-list free space now keeps decreasing when the list is squeezed to 0px and updates when the header or toolbar changes size.

    4.18.1release notes

  • Tabsets now respect minimum and maximum sizes when model sizes do not fit their minimums; those that must collapse to fit are shown as collapsed, and the model remains unchanged.

    4.18.0release notes

  • For a collapsible tabset, its size is the size it expands to.

    4.17.0release notes

  • Workspace tabsets and splits now have element ids unique within the page, avoiding collisions with application elements or other workspaces.

    4.16.1release notes

  • Dragging a Workspace separator no longer ends after a few pixels when tabset header sizes change during resizing.

    4.16.1release notes

  • Fixes separator resize previews missing the separator's styles when its element was created by another window's document.

    4.16.0release notes

  • Fixes separators remaining in their hover state when the pointer moves onto an iframe in a Group rendered into another window.

    4.16.0release notes

  • Corrects separator and gridline movement when an ancestor has CSS zoom or a scale transform by converting pointer movements from screen pixels to layout pixels.

    4.16.0release notes

  • Declares the package side-effect-free so bundlers can remove unused components; an application importing only Group no longer includes Grid.

    4.15.3release notes

  • Fixes vh, vw, and em panel sizes to resolve against the panel's own window when a Group is rendered in another window.

    4.15.2release notes

  • Declared as an optional peer dependency so TypeScript can resolve React types under strict package linkers instead of silently typing props as any.

    4.15.1release notes

  • Releasing the pointer after dragging a boundary between panels without a Separator no longer clicks the element under the pointer.

    4.15.0release notes

  • Group and Grid setLayout(), and Panel resize(), collapse(), and expand() no longer validate against pixel-based constraints for the previous group size when called before the group's ResizeObserver runs.

    4.14.8release notes

  • Detached event targets are now treated as viable hit targets, preventing an error when a target is removed from the DOM during pointermove dispatch.

    4.14.8release notes

  • F6 and Shift+F6 navigation now skips disabled separators instead of trying to focus them.

    4.14.6release notes

  • Group, Panel, Separator, Grid, and Cell only render an explicit id or data-testid as data-testid.

    4.14.5release notes

  • An empty string id now behaves like an undefined id and falls back to useId.

    4.14.5release notes

  • Panel now correctly treats 0 as an explicit id value.

    4.14.5release notes

  • Errors from layout or resize callbacks no longer leave drags stuck or prevent other groups from updating; errors are re-thrown afterward.

    4.14.4release notes

  • Pointer events across documents no longer affect groups mounted in another document, and the resize cursor is limited to the active group's document.

    4.14.4release notes

  • Interrupted drags now end and commit the current layout instead of remaining active until the next pointer event.

    4.14.3release notes

  • Panels and separators are resorted before constraints are re-derived, fixing constraint calculations.

    4.14.2release notes

  • Constraint-induced layout changes no longer permanently alter the layout; the requested layout is restored when the constraint no longer applies.

    4.14.1release notes

  • Separator behind a modal dialog can no longer be dragged.

    4.13.3release notes

  • Panel ordering is fixed in environments with invalid offset values, such as JSDom.

    4.13.2release notes

  • The default layout is respected when an initially hidden group becomes visible.

    4.13.1release notes

  • Keyboard mappings are preserved for disabled separators, fixing the “Matching panels not found” error edge case.

    4.13.1release notes

  • Layout values now match panel IDs so reordered keys map to the correct constraints.

    4.13.1release notes

  • onLayoutChanged still fires when pressing elsewhere on the page or resizing another group.

    4.13.1release notes

  • Detached Separator components no longer capture the pointer.

    4.12.4release notes

  • Separator ARIA values now use proper panel indices.

    4.12.4release notes

  • Construction is guarded to avoid throwing in unsupported environments.

    4.12.3release notes

  • An edge case involving orphaned groups during pointerup was prevented.

    4.12.3release notes

  • The equality check for derived panel constraints was fixed.

    4.12.3release notes

  • Prevents context menu events from occurring while pointer-resize is active.

    4.12.1release notes

  • Improved server rendering support for the defaultSize prop.

    4.7.5release notes

  • Fixed an edge-case bug with pointer event capture.

    4.7.4release notes

  • Separators no longer scroll when receiving focus.

    4.7.2release notes

  • Checks for undefined adoptedStyleSheets to better support environments like jsdom.

    4.6.5release notes

  • Updates the in-memory layout cache when a group is resized by double-clicking on a separator.

    4.6.5release notes

  • Fixed resize actions sometimes jumping on touch devices.

    4.6.4release notes

  • Group now guards against layouts with mis-ordered Panel id keys.

    4.6.2release notes

  • Separator now sets a not-allowed cursor when its parent Group has cursors disabled.

    4.6.1release notes

  • Click events are no longer swallowed in certain cases.

    4.5.9release notes

  • A collapsible panel bugfix was re-enabled after another reported issue was fixed.

    4.5.9release notes

  • Imperative Group.setLayout now persists the layout to the in-memory cache.

    4.5.9release notes

  • The change to collapsible panel behavior from pull request 635 was disabled due to another reported regression.

    4.5.8release notes

  • Re-enables collapsible panels that were disabled in 4.5.6.

    4.5.7release notes

  • Resets separator hover state when the document receives a pointerout event.

    4.5.7release notes

  • Disabled the earlier change to collapsible panel behavior, restoring the previous behavior.

    4.5.6release notes

  • Removed the invalid aria-orientation role from the root Group element to comply with the ARIA specification.

    4.5.5release notes

  • Fixed a regression affecting collapsible Panel behavior that was introduced in 4.5.3.

    4.5.5release notes

  • Panels set max-width and max-height to 100% to fix a potential CSS overflow bug.

    4.5.3release notes

  • Safari now falls back to alternate CSS cursor styles for grab, col-resize, and row-resize cursors.

    4.5.1release notes

  • The library no longer overrides adoptedStyleSheets.

    4.5.0release notes

  • Panels within vertical groups are now sized correctly in Safari.

    4.5.0release notes

  • Fixes cursor style calculation when pointermove events provide low-precision or rounded clientX and clientY values.

    4.4.2release notes

  • Collapsible panels now treat defaultSize={0} as collapsed when mounted.

    4.4.1release notes

  • On pointerup, event.preventDefault() is no longer called unless a handle was actively dragged, fixing a Windows text selection bug.

    4.3.3release notes

  • Panel pixel size is read with offsetWidth/offsetHeight to avoid an edge-case ResizeObserver bug.

    4.3.1release notes

  • Pointerdown and pointerup handlers now use the capture phase for compatibility with UI libraries such as Blueprint JS.

    4.3.1release notes

  • Styles no longer use unset values, improving override safety for applications using the panels.

    4.3.1release notes

  • The useGroupRef type now includes | null for better compatibility with older React versions.

    4.3.0release notes

  • The usePanelRef type now includes | null for better compatibility with older React versions.

    4.3.0release notes

  • The ambiguous onResize prop type was fixed for compatibility with certain TypeScript versions.

    4.2.2release notes

  • Group handles newly registered Panels and Separators during mount, allowing user code to safely call imperative APIs earlier.

    4.2.1release notes

  • A race condition in the hook was fixed for more reliable group ref behavior.

    4.1.0release notes

  • A race condition in the hook was fixed for more reliable panel ref behavior.

    4.1.0release notes

  • Adds a guard for an unexpected defaultView value returned by some development environments.

    4.0.16release notes

  • Panel expand() now restores the size from before the panel was collapsed.

    4.0.16release notes

  • defaultLayout is ignored when its keys do not match Panel ids.

    4.0.15release notes

  • Fixes an edge case where panel constraints were not properly invalidated after resizing.

    4.0.11release notes

  • Group no longer remounts when defaultLayout or disableCursor props change.

    4.0.9release notes

  • Panel id changes are now handled gracefully.

    4.0.9release notes

  • Clicks on higher z-index elements such as modals no longer trigger separators behind them.

    4.0.9release notes

  • Invalid defaultLayout values are now handled gracefully.

    4.0.8release notes

  • Invalid layouts are no longer set when Group is hidden or has a width or height of 0.

    4.0.8release notes

  • Pointer-event styles are reset after the pointerup event, preventing stale interaction styles after pointer release.

    4.0.7release notes

  • Pointer-move delta percentages now account for Flex gap when calculating panel resizing.

    4.0.6release notes

  • Resize user experience is improved on iOS and Safari.

    4.0.4release notes

  • Separator receives focus on pointerdown, improving focus behavior during panel resizing.

    4.0.4release notes

  • Fixed the TypeScript type for the defaultLayout value returned from useDefaultLayout.

    4.0.3release notes

  • Accounts for pointer resize events near the edge of a window or iframe.

    4.0.1release notes

react-resizable-panels 32 changes

Breaking changes 1

  • The module is ESM-only, which affects how projects import and use the package with modern tooling.

    3.0.0release notes

Fixes and other changes 1

  • The pointerup and pointercancel listeners are attached to the ownerDocument body, better supporting cases such as portals rendered into a child window.

    3.0.0release notes