Skip to Content
React Flow 13 is here! Read the announcement →
ReferenceTypes

ShouldResize

Source on GitHub 

The ShouldResize type is a callback that fires whenever a node is resized by a <NodeResizer /> component, and is used to determine whether the node may be resized.

If this callback returns false, other resize lifecycle callbacks such as OnResizeStart will not be invoked.

type ShouldResize = (event: ResizeDragEvent, params: ResizeParams) => boolean;
Parameters:
NameTypeDefault
eventResizeDragEvent
paramsResizeParamsWithDirection
Returns:
Result