@vue-flow/additional-components
TypeScript icon, indicating that this package has built-in type declarations

1.3.3 • Public • Published

Vue Flow: Additional Components

This package contains additional components that can be used with Vue Flow. These components include:

🛠 Setup

# install
$ yarn add @vue-flow/additional-components

# or
$ npm i --save @vue-flow/additional-components

🎮 Quickstart

<script setup>
import { VueFlow } from '@vue-flow/core'
import { Background, BackgroundVariant, Controls, MiniMap } from '@vue-flow/additional-components'
import initialElements from './initial-elements'

// some nodes and edges
const elements = ref(initialElements)
</script>
<template>
  <div style="height: 300px">
    <VueFlow v-model="elements">
      <!-- Adds a background to your graph. Use variant to specifiy which type of Background to use (lines, dots) -->
      <Background :variant="BackgroundVariant.Dots" />
      
      <!-- Adds zoom/interaction controls to your graph. You can add more buttons by using slots. -->
      <Controls />

      <!-- Adds a minimap to your graph. -->
      <MiniMap />
    </VueFlow>
  </div>
</template>

Readme

Keywords

none

Package Sidebar

Install

npm i @vue-flow/additional-components

Weekly Downloads

873

Version

1.3.3

License

MIT

Unpacked Size

232 kB

Total Files

21

Last publish

Collaborators

  • braks