@ucloud-pccl/react-components
Version:
UCloud pccl react components
9 lines (8 loc) • 417 B
TypeScript
import React, { ProviderProps } from 'react';
interface Context {
getPopupContainer?: (trigger: HTMLElement) => HTMLElement;
}
declare const ContainerContext: React.Context<Context>;
export default ContainerContext;
export declare const Consumer: React.Consumer<Context>, Provider: React.Provider<Context>;
export declare const InheritProvider: ({ value, ...props }: ProviderProps<Context>) => React.JSX.Element;