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

1.1.2 • Public • Published

Vue Flow: Controls Component

This is a control component for Vue Flow. It can be used to control the canvas interactions, like zooming in, zooming out, fitting the view and locking interactions.

🛠 Setup

# install
$ yarn add @vue-flow/controls

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

🎮 Quickstart

<script setup>
import { VueFlow } from '@vue-flow/core'
import { Controls } from '@vue-flow/controls'

// import default controls styles
import '@vue-flow/controls/dist/style.css'

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">
    <Controls />
  </VueFlow>
</template>

Package Sidebar

Install

npm i @vue-flow/controls

Weekly Downloads

33,405

Version

1.1.2

License

MIT

Unpacked Size

34.4 kB

Total Files

11

Last publish

Collaborators

  • braks