Skip to content
On this page


All default edge components are exported and can be used or extended if necessary.

<script setup>
// CustomEdge.vue
import { EdgeProps, BezierEdge } from '@braks/vue-flow'

const props = defineProps<EdgeProps>()

// do some custom logic
  <!-- wrap the bezier edge or do something else in the template -->
  <BezierEdge v-bind="props" />

Path utils

Vue Flow exports a couple of functions you can use to create your own custom edges without having to worry how to actually create a bezier path.

This can be helpful if you don't want to actually change the way the path is calculated but just want to implement some custom logic on top of the regular edge behavior.


  • Details:

    Returns a bezier path.


  • Details:

    Returns a bezier path's center x and y values.


  • Details:

    Returns a simple bezier path (no curvature at handles).


  • Details:

    Returns a simple bezier path's center x and y values.


  • Details:

    Returns a smoothstep path (use border-radius 0 for a step path).


  • Details:

    Returns an edge path's center x and y values.

Released under the MIT License.