yantd
Version:
React component library
15 lines (14 loc) • 689 B
TypeScript
import React from "react";
export interface ConfigConsumerProps {
getTargetContainer?: () => HTMLElement;
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
rootPrefixCls?: string;
iconPrefixCls?: string;
direction?: DirectionType;
getPrefixCls: (suffixCls?: string, customizePrefixCls?: string) => string;
children?: React.ReactNode;
}
export declare const defaultGetPrefixCls: (suffixCls?: string, customizePrefixCls?: string) => string;
export declare const ConfigContext: React.Context<ConfigConsumerProps>;
export declare const ConfigConsumer: React.Consumer<ConfigConsumerProps>;
export declare type DirectionType = 'ltr' | 'rtl' | undefined;