Skip to content

@vue-flow/monorepo • Docs


Function: useNodeId() ​

useNodeId(): string

This composable returns the current node id from the ctx.

It should be used inside a (custom-)node components ctx as the id is provided by the internal NodeWrapper component.

Returns ​

string

the current node id

Released under the MIT License.