context.d.ts 489 B

12345678910111213
  1. import * as React from 'react';
  2. import type { GenerateConfig } from '../generate';
  3. import type { Components, Locale } from '../interface';
  4. export interface PickerContextProps<DateType = any> {
  5. prefixCls: string;
  6. locale: Locale;
  7. generateConfig: GenerateConfig<DateType>;
  8. /** Customize button component */
  9. button?: Components['button'];
  10. input?: Components['input'];
  11. }
  12. declare const PickerContext: React.Context<PickerContextProps<any>>;
  13. export default PickerContext;