@vue-flow/node-toolbar
This is a toolbar component for Vue Flow. It can be used to create a floating Toolbar next to your nodes. You can either display the Toolbar by setting the visibility prop or automatically showing the Toolbar on selected nodes.
1,563,690
6,922
| Install | |
|---|---|
npm install @vue-flow/node-toolbar |
|
| Latest Version: | 1.1.1 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Jul 14, 2026 |
| Links: | GitHub · npm |
Maintainer: braks
Vue Flow: Toolbar Component
This is a toolbar component for Vue Flow. It can be used to create a floating Toolbar next to your nodes. You can either display the Toolbar by setting the visibility prop or automatically showing the Toolbar on selected nodes.
🛠 Setup
# install
$ yarn add @vue-flow/node-toolbar
# or
$ npm i --save @vue-flow/node-toolbar
🎮 Quickstart
<script setup>
import { VueFlow } from '@vue-flow/core'
import initialElements from './initial-elements'
// some nodes and edges
const elements = ref(initialElements)
</script>
<template>
<VueFlow v-model="elements" fit-view-on-init>
<template #node-custom="nodeProps">
<CustomNode :data="nodeProps.data" :label="nodeProps.label" />
</template>
</VueFlow>
</template>
<script lang="ts" setup>
import { Handle, Position } from '@vue-flow/core'
import { NodeToolbar } from '@vue-flow/node-toolbar'
interface NodeData {
toolbarVisible: boolean
toolbarPosition: Position
}
interface Props {
data: NodeData
label: string
}
defineProps<Props>()
</script>
<template>
<NodeToolbar :is-visible="data.toolbarVisible" :position="data.toolbarPosition">
<button>delete</button>
<button>copy</button>
<button>expand</button>
</NodeToolbar>
<div :style="{ padding: '10px 20px' }">
{{ label }}
</div>
<Handle type="target" :position="Position.Left" />
<Handle type="source" :position="Position.Right" />
</template>
Related Packages
@vue-flow/core
16,735,981
6,922
@vue-flow/background
This is a background component for Vue Flow. It can be used to create a backgrou...
12,886,433
6,922
@vue-flow/controls
This is a control component for Vue Flow. It can be used to control the canvas i...
9,862,020
6,922
@vue-flow/minimap
This is a minimap component for Vue Flow. It can be used to add a minimap to the...
8,118,301
6,922
@vue-flow/node-resizer
This is a resizer component for Vue Flow. It can be used to resize your nodes.
3,756,522
6,922
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.1.1 | ^3.3.0 | MIT | |
| 1.1.0 | ^3.2.25 | MIT | |
| 1.0.7 | ^3.2.25 | MIT | |
| 1.0.6 | ^3.2.25 | MIT | |
| 1.0.5 | ^3.2.37 | MIT | |
| 1.0.4 | ^3.2.37 | MIT | |
| 1.0.3 | ^3.2.37 | MIT | |
| 1.0.2 | ^3.2.37 | MIT | |
| 1.0.1 | ^3.2.37 | MIT | |
| 1.0.0 | ^3.2.37 | MIT | |
| 0.0.1 | ^3.2.37 | MIT |