@rc-component/picker
Version:
React date & time picker
16 lines (15 loc) • 639 B
TypeScript
import * as React from 'react';
import type { GenerateConfig } from '../generate';
import type { Components, Locale, SemanticStructure } from '../interface';
export interface PickerContextProps<DateType = any> {
prefixCls: string;
locale: Locale;
generateConfig: GenerateConfig<DateType>;
/** Customize button component */
button?: Components['button'];
input?: Components['input'];
styles?: Partial<Record<SemanticStructure, React.CSSProperties>>;
classNames?: Partial<Record<SemanticStructure, string>>;
}
declare const PickerContext: React.Context<PickerContextProps<any>>;
export default PickerContext;