UNPKG

react-anpicker

Version:

a react date picker for supporting persian dates

16 lines (15 loc) 840 B
import { ComponentType, RefObject } from "react"; import { CustomInputRequiredProps } from "./Models/MainProps"; import Locale from "./Models/Locale"; export declare const AnPicker: ({ className, onChange, value, showTodayBottom, locale, showSidebar, inputControl: Input, popupParentRef, popupVPosition, popupHPosition, }: { onChange: (date: string, gregorianDate?: [number, number, number]) => void; value: string; className?: string | undefined; inputControl?: ComponentType<CustomInputRequiredProps> | undefined; showTodayBottom?: boolean | undefined; locale?: Locale | undefined; showSidebar?: boolean | undefined; popupParentRef?: RefObject<HTMLElement> | undefined; popupVPosition?: "top" | "bottom" | undefined; popupHPosition?: "left" | "right" | undefined; }) => JSX.Element;