UNPKG

@craftjs/core

Version:

A React Framework for building extensible drag and drop page editors

12 lines (11 loc) 419 B
import React from 'react'; import { NodeId } from '../interfaces'; export type NodeContextType = { id: NodeId; related?: boolean; }; export declare const NodeContext: React.Context<NodeContextType>; export type NodeProviderProps = Omit<NodeContextType, 'connectors'> & { children?: React.ReactNode; }; export declare const NodeProvider: ({ id, related, children, }: NodeProviderProps) => React.JSX.Element;