[](https://vueflow.dev/)   
!top-language
!GitHub code size in bytes
!GitHub last commit
__Vue Flow: A highly customizable Vue 3 Flowchart component.__
You can find a detailed explanation on how to get started here
or jump right into the examples.
* 
- ๐ถ __Easy setup__: Get started hassle-free - Built-in zoom- & pan features, element dragging, selection and much more
- ๐จ __Customizable__: Use your custom nodes, edges and connection lines and expand on Vue Flows' functionality
- ๐ __Fast__: Tracks changes reactively and only re-renders the appropriate elements
- ๐งฒ __Utils & Composition__: Comes with graph helper and state composable functions for advanced uses
- ๐ฆ __Additional Components__:
- ๐ผ Background: With two built-in patterns and some configuration options like height, width or color.
- ๐งญ Minimap: Shows current nodes in a small map shape in the bottom right corner
- ๐น Controls: Control zoom behavior from a panel on the bottom left
- ๐ค And (many) more to come...
- ๐ฆพ __Reliable__: Fully written in TypeScript
``bash
$ npm i @vue-flow/core
๐ฎ Quickstart
In Vue Flow, an application structure consists of __nodes__ and __edges__, all of which are categorised as __elements__.
__Each element requires a unique id.__
Nodes additionally need an __XY-position__, while edges require a __source__ and a __target__, both represented by node ids.
`vue
`โ ๏ธ __Make sure to import the necessary styles:__
`css
/ import the required styles /
@import "@vue-flow/core/dist/style.css";/ import the default theme (optional) /
@import "@vue-flow/core/dist/theme-default.css";
`Do __not__ scope these styles with
scoped in your component.$3
_This library doesn't work with Vue 2._
Vue Flow uses features that are exclusive to Vue 3, therefore
there is no support for Vue 2, nor will there be any support in the future, sorry.
๐งช Development
$3
`bash
install pnpm if you haven't already
$ npm i -g pnpmstart examples
$ pnpm devbuild all packages
$ pnpm build
`$3
To start using development containers, install the
Docker extension
for VSCode.
After installing the extension, open the connection menu either
on the bottom left or open it via the commands tab.
Select the Open Folder in Container` option to mount the project.The development container will spin up all packages example apps and forward
the ports to your machine.
Join the Vue Flow Discord server!
Here you can ask questions to the community, propose ideas for new features
or share your work that you have built with Vue Flow.
This project is built with
- React Flow
- Vue flow is heavily based on webkids' ReactFlow. I wholeheartedly
thank them for their amazing work! Without them VueFlow would not exist.
Please consider donating or subscribing to ReactFlow Pro.
- D3.js
- D3 makes all the zoom and pan actions in Vue Flow possible.
- VueUse
- VueUse is a collection of essential vue composition utilities
Many thanks to the kind individuals who leave a star.
Your support is much appreciated!
