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

SnapGrid

Source on GitHub 

The SnapGrid type defines the grid size for snapping nodes on the pane. It is used in conjunction with the snapToGrid prop to enable grid snapping functionality.

type SnapGrid = [number, number];