1.5 KiB
1.5 KiB
React Flow in Vue3 = Revue Flow
This repo is still a big construction site with nothing really finished. Please check out React Flow if you like the idea.
Motivation
Seeing as many libraries exist in the React ecosystem and Vue sadly does not get the same love and attention, I decided to port the React Flow library to Vue.js.
Usage
Vue3
# install revue flow
$ yarn add @braks/revue-flow
# or
$ npm i --save @braks/revue-flow
Make sure to include the style.css file from the revue-flow dist directory in your main file or give the nodes your own styling.
import '@braks/revue-flow/dist/style.css';
// the rest of your app
Vue2
This doesn't work with Vue2, sorry.
Development
This project uses Vite for development and Rollup to create type definitions.
# start (dev)
$ yarn dev
# build app
$ yarn build
# serve app from dist
$ yarn serve