💡 This is the legacy site for v11. If you are looking for the latest docs, please visit React Flow
Reference
ResizeParams

ResizeParams

Source on Github (opens in a new tab)

The ResizeParams type is used to type the various events that are emitted by the <NodeResizer /> component. You'll sometimes see this type extended with an additional direction field too.

export type ResizeParams = {
  x: number;
  y: number;
  width: number;
  height: number;
};

Fields

#x
number
#y
number
#width
number
#height
number