UNPKG

@vue-flow/core

Version:

[![Vue flow](vue-flow.gif)](https://vueflow.dev/) ![top-language](https://img.shields.io/github/languages/top/bcakmakoglu/vue-flow) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/bcakmakoglu/vue-flow) ![GitHub last commit](

16 lines (14 loc) 574 B
import type { FlowOptions, VueFlowStore } from '../types' /** * Composable that provides access to a store instance * * If no id is provided, the store instance is injected from context * * If no store instance is found in context, a new store instance is created and registered in storage * * @public * @returns a vue flow store instance * @param idOrOpts - id of the store instance or options to create a new store instance */ export declare function useVueFlow(id?: string): VueFlowStore export declare function useVueFlow(options?: FlowOptions): VueFlowStore