Skip to content
Latestv1.0.63

Node Toolbar ​

To enhance user interaction efficiency, you may want a floating shortcut toolbar to appear near a node (above, below, etc.) when it is selected. The yh-flow NodeToolbar component uses Vue Teleport so the toolbar stays correctly positioned at any canvas zoom level.

Node Toolbar Example ​

Click the node below to see the shortcut buttons above it. The demo uses v-model:nodes so selection syncs to the parent and the toolbar visibility (which depends on node.selected) works correctly.

Floating Shortcut Toolbar

API Reference ​

Props ​

NameTypeDefaultDescription
nodeIdstringRequiredThe ID of the parent node.
selectedbooleanfalseWhether to display the toolbar (usually bound to node.selected).
positionstring'top'Relative position: top, bottom, left, right.
offsetnumber10Pixel distance from the node edge.

TIP

The toolbar supports any custom Vue slot content. We strongly recommend using the .stop modifier on your buttons' @click events to prevent the Flow engine from triggering selection or pan logic behind the toolbar.

Released under the MIT License.