e560cdd257a99d909d6e69ef48431e42e3f153a6
Vue Flow 🌊
A customizable Vue3 Flowchart.
Check the docs and examples to get started.
Features
-
👶 Easy to use: Seamless zooming & panning behaviour and single and multi-selections of elements
-
🎨 Customizable: Different and edge types and support for custom nodes with multiple handles and custom edges
-
🚀 Fast rendering: Only nodes that have changed are re-rendered and only those that are in the viewport are displayed (optionally)
-
🧲 Utils: Snap-to-grid and graph helper functions
-
📦 Additional Components:
-
🖼 Background
-
🧭 Minimap
-
🕹 Controls
-
-
🦾 Fully written in TypeScript
Table of Contents
🛠 Setup
$ npm i @braks/vue-flow
# or
$ yarn add @braks/vue-flow
🎮 Quickstart
<template>
<Flow :elements="elements"></Flow>
</template>
<script setup>
import { Flow, Elements } from '@braks/vue-flow'
const elements = ref < Elements > ([
{
id: '1',
data: {
label: 'This is a <strong>default node</strong>',
},
position: { x: 100, y: 100 },
},
])
</script>
▸ Vue 2
This library doesn't work with Vue2.
🧪 Development
# start (dev)
$ yarn dev
# build dist
$ yarn build
Credit
Thanks to webkid for creating React Flow! Without their work this would've been impossible for me.
Description
Languages
TypeScript
80.3%
Vue
17%
CSS
1.8%
JavaScript
0.6%
Dockerfile
0.2%
Other
0.1%
