docs: add toolbar example

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2022-12-09 20:52:01 +01:00
committed by Braks
parent c37bb8a3cf
commit 52c23e9770
7 changed files with 109 additions and 0 deletions
+1
View File
@@ -211,6 +211,7 @@ export default defineConfigWithTheme<DefaultTheme.Config>({
{ text: 'Custom Node', link: '/examples/nodes/' },
{ text: 'Update Node', link: '/examples/nodes/update-node' },
{ text: 'Nested Nodes', link: '/examples/nodes/nesting' },
{ text: 'Node Toolbar', link: '/examples/nodes/node-toolbar' },
],
},
{
+4
View File
@@ -12,6 +12,10 @@ export function copyVueFlowPlugin(): Plugin {
path: '../../../node_modules/@vue-flow/additional-components/dist/',
pkgName: 'vue-flow-additional-components.mjs',
},
{
path: '../../../node_modules/@vue-flow/node-toolbar/dist/',
pkgName: 'vue-flow-node-toolbar.mjs',
},
].forEach(({ path, pkgName }) => {
const filePath = resolve(__dirname, `${path}/${pkgName}`)
if (!existsSync(filePath)) {
+10
View File
@@ -0,0 +1,10 @@
# 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.
<div class="mt-6">
<Repl example="toolbar"></Repl>
</div>