Skip to Content
You are viewing the v12 docs of React Flow. You can find the latest version here.

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];
Last updated on