@joint/react
Version:
React bindings and hooks for JointJS to build interactive diagrams and graphs.
15 lines (14 loc) • 391 B
TypeScript
export declare const PortGroupContext: import("react").Context<string | undefined>;
/**
* A provider for the port group context.
* @returns - The port group.
* @group context
* @internal
* @description
* This context is used to provide the port group to the components.
* @example
* ```ts
* const groupId = usePortGroup();
* ```
*/
export declare function usePortGroup(): string;