UNPKG

@fk6/react-datepicker

Version:

React date picker with Hijri & Gregorian support, theming, localization, and more.

23 lines 1.14 kB
import { Moment } from 'moment-hijri'; import { default as React, ComponentProps, MouseEvent, ReactNode, Ref } from 'react'; export interface DateFieldExtraProps { ref?: Ref<any> | undefined; value?: Date | Moment | null; defaultValue?: Date | Moment | null; format?: string; clearable?: boolean; showIcon?: boolean; locale?: string | undefined; disabled?: boolean; readOnly?: boolean; placeholder?: string | undefined; renderIcon?: () => ReactNode; onChange?: (date: Date | null) => void; onInputChange?: (raw: string) => void; onOpenRequest?: (e?: MouseEvent | HTMLElement | boolean | null) => void; } export interface DateFieldInputExtraProps extends Omit<ComponentProps<'input'>, 'value' | 'onChange' | 'defaultValue' | 'disabled' | 'readOnly' | 'placeholder' | 'ref'>, DateFieldExtraProps { } export type DateFieldProps = Omit<DateFieldInputExtraProps, "clearable" | "showIcon" | "renderIcon">; export declare const DateField: React.ForwardRefExoticComponent<Omit<DateFieldInputExtraProps, "ref"> & React.RefAttributes<HTMLInputElement>>; //# sourceMappingURL=index.d.ts.map