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

ControlPosition

Source on GitHub 

The ControlPosition type is used by the position prop of the <NodeResizeControl /> component to define where on the node the control is placed. Line controls use the four sides, while handle controls can also be placed in the four corners.

type ControlLinePosition = 'top' | 'bottom' | 'left' | 'right'; type ControlPosition = ControlLinePosition | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';