74 lines
1.6 KiB
Markdown
74 lines
1.6 KiB
Markdown
# Vue Flow 🌊
|
|
|
|
[](https://reactflow.dev/)
|
|

|
|
[](https://david-dm.org/bcakmakoglu/vue-flow)
|
|
[](https://david-dm.org/bcakmakoglu/vue-flow?type=dev)
|
|

|
|

|
|

|
|
|
|
__A customizable Vue3 Flowchart.__
|
|
|
|
### __🚧 This library is still under construction__
|
|
|
|
Check the [docs](https://vue-flow.vercel.app/docs) and [examples](https://vue-flow.vercel.app/examples) to get started.
|
|
|
|
## Features
|
|
|
|
- 🎨 Customizable
|
|
|
|
- 🦾 Fully written in TypeScript
|
|
|
|
## Table of Contents
|
|
|
|
* [🛠 Setup](#-setup)
|
|
|
|
* [🎮 Quickstart](#-quickstart)
|
|
|
|
* [🧪 Development](#-development)
|
|
|
|
## 🛠 Setup
|
|
|
|
```bash
|
|
$ npm i @braks/vue-flow
|
|
# or
|
|
$ yarn add @braks/vue-flow
|
|
```
|
|
|
|
## 🎮 Quickstart
|
|
|
|
```vue
|
|
|
|
<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
|
|
|
|
```bash
|
|
# start (dev)
|
|
$ yarn dev
|
|
|
|
# build dist
|
|
$ yarn build
|
|
```
|