Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

vue-flow

> 前端框架
Open source

A highly customizable Flowchart component for Vue 3. Features seamless zoom & pan , additional components like a Minimap and utilities to interact with sta

6.8K stars0 likes2 views
WebsiteGitHub

About

A highly customizable Flowchart component for Vue 3. Features seamless zoom & pan , additional components like a Minimap and utilities to interact with sta

Vue Flow

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.

Table of contents

  • ⭐️ Features

  • Setup

  • Quickstart

    • Vue 2
  • Development

    • Dev Container
  • Discord

  • Special Thanks

  • ⭐ Stargazers

⭐️ Features

  • 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

Setup

bash
$ npm i @vue-flow/core

# or
$ pnpm i @vue-flow/core

# or
$ yarn add @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.

…

⚠️ 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.

Vue 2

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

Prerequisites

  • Node.js v20+
  • pnpm v9+
bash
# install pnpm if you haven't already
$ npm i -g pnpm

# start examples
$ pnpm dev

# build all packages
$ pnpm build

Dev Container

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.

Discord

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.

Special Thanks

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

⭐ Stargazers

Many thanks to the kind individuals who leave a star. Your support is much appreciated!

Issues· 19 open

View all issuesOpen on GitHub
  • #2167

    [BUG]: <title> core.iife.js has undefined variable

    bugtriageUpdated Jul 2, 2026
  • #2022

    [BUG]: selectionKeyCode Prop Invalid Type Value

    bugquestionUpdated Jun 9, 2026
  • #1886

    [BUG]: ERROR TS2589 Type instantiation is excessively deep and possibly infinite.

    bugtriageUpdated Jun 6, 2026
  • #1999

    [BUG]: Space keydown events on text input elements swallowed by zoom and pan shortcut

    bugtriageUpdated Jan 8, 2026
  • #1986

    [BUG]: Drag functionality does not work in VS Code's extension webview

    bugtriageUpdated Dec 23, 2025
  • #1908

    [BUG]: moveStart event fires without being followed by moveEnd event

    bugUpdated Aug 11, 2025
  • #1801

    [BUG]: fitView is ignoring hiden uninitialized nodes even though { includeHiddenNodes: true }

    bugtriageUpdated Mar 18, 2025
  • #1642

    [BUG]: Pinch zooming with trackpads does not work on Windows laptops

    bugUpdated Feb 2, 2025
  • #1655

    [BUG]: The connect bug on the basic example page

    bugUpdated Nov 1, 2024
  • #1630

    [BUG]: Race condition during adding/removing nodes when hooking into change handlers

    bugenhancementUpdated Oct 20, 2024

> Tags

TypeScriptdiagramsflowflowchartjavascript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 23, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架