We just launched Svelte Flow!

React Flow

LearnLearnReferenceReferenceExamplesExamples
React Flow Pro
  • API Reference
  • <ReactFlow />
  • <ReactFlowProvider />
  • Components
    • <Background />
    • <BaseEdge />
    • <ControlButton />
    • <Controls />
    • <EdgeLabelRenderer />
    • <EdgeText />
    • <Handle />
    • <MiniMap />
    • <NodeResizer />
    • <NodeResizeControl />
    • <NodeToolbar />
    • <Panel />
  • Hooks
    • useEdges()
    • useEdgesState()
    • useKeyPress()
    • useNodeId()
    • useNodes()
    • useNodesInitialized()
    • useNodesState()
    • useOnSelectionChange()
    • useOnViewportChange()
    • useReactFlow()
    • useStore()
    • useStoreApi()
    • useUpdateNodeInternals()
    • useViewport()
  • Types
    • BackgroundVariant
    • Connection
    • ConnectionLineComponentProps
    • ConnectionLineType
    • CoordinateExtent
    • DefaultEdgeOptions
    • Edge
    • EdgeChange
    • EdgeMarker
    • EdgeProps
    • FitViewOptions
    • MarkerType
    • MiniMapNodeProps
    • Node
    • NodeChange
    • NodeProps
    • PanelPosition
    • Position
    • ProOptions
    • ReactFlowInstance
    • ReactFlowJsonObject
    • ResizeParams
    • Viewport
  • Utils
    • addEdge()
    • applyEdgeChanges()
    • applyNodeChanges()
    • getBezierPath()
    • getConnectedEdges()
    • getIncomers()
    • getMarkerEnd()
    • getNodesBounds()
    • getOutgoers()
    • getRectOfNodes()
    • getSimpleBezierPath()
    • getSmoothStepPath()
    • getStraightPath()
    • getTransformForBounds()
    • getViewportForBounds()
    • isEdge()
    • isNode()
    • updateEdge()
Question? Give us feedback → (opens in a new tab)Edit this pageWhat's new here?
Reference
Types
PanelPosition

PanelPosition

Source on GitHub (opens in a new tab)

This type is mostly used to help position things on top of the flow viewport. For example both the <MiniMap /> and <Controls /> components take a position prop of this type.

export type PanelPosition =
  | 'top-left'
  | 'top-center'
  | 'top-right'
  | 'bottom-left'
  | 'bottom-center'
  | 'bottom-right';
NodePropsPosition

A project by the xyflow team

We are building and maintaining open source software for node-based UIs since 2019.

React Flow

Quickstart GuideAPI ReferenceExamplesShowcaseReact Flow Pro

Community

DiscordGithubMastodonBluesky

xyflow

BlogOpen SourceAboutContact

Legal

MIT LicenseCode of ConductImprint

info@xyflow.com — Copyright © 2023 webkid GmbH. All rights reserved — website design by Facu Montanaro