Files
vue-flow/packages/background
github-actions[bot] d22a2394d4 chore: bump versions
2024-11-13 20:20:43 +01:00
..
2024-11-13 20:20:43 +01:00
2024-11-13 20:20:43 +01:00
2023-03-07 19:15:51 +01:00

Vue Flow: Background Component

This is a background component for Vue Flow. It can be used to create a background in your canvas.

🛠 Setup

# install
$ yarn add @vue-flow/background

# or
$ npm i --save @vue-flow/background

🎮 Quickstart

<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>