UNPKG

@gechiui/block-editor

Version:
32 lines 1.09 kB
/** * Component which merges passed value with current consumed block context. * * @see https://github.com/GeChiUI/gutenberg/blob/HEAD/packages/block-editor/src/components/block-context/README.md * * @param {BlockContextProviderProps} props */ export function BlockContextProvider({ value, children }: BlockContextProviderProps): JSX.Element; export default Context; export type ReactNode = import('react').ReactNode; export type BlockContextProviderProps = { /** * Context value to merge with current * value. */ value: Record<string, any>; /** * Component children. */ children: ReactNode; }; /** @typedef {import('react').ReactNode} ReactNode */ /** * @typedef BlockContextProviderProps * * @property {Record<string,*>} value Context value to merge with current * value. * @property {ReactNode} children Component children. */ /** @type {import('react').Context<Record<string,*>>} */ declare const Context: import('react').Context<Record<string, any>>; //# sourceMappingURL=index.d.ts.map