refactor(background): move background into separate package

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2022-12-13 14:53:44 +01:00
committed by Braks
parent af801c74ce
commit c7b51025d0
10 changed files with 395 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
# Vue Flow: Background Component
This is a background component for Vue Flow.
It can be used to create a background in your canvas.
## 🛠 Setup
```bash
# install
$ yarn add @vue-flow/background
# or
$ npm i --save @vue-flow/background
```
## 🎮 Quickstart
```vue
<script setup>
import { VueFlow } from '@vue-flow/core'
import { Background } from '@vue-flow/background'
import initialElements from './initial-elements'
// some nodes and edges
const elements = ref(initialElements)
</script>
<template>
<VueFlow v-model="elements" fit-view-on-init class="vue-flow-basic-example">
<Background />
</VueFlow>
</template>
```