UNPKG

persian-datepicker-react

Version:

persian datepicker based on moment-jalalli

35 lines (31 loc) 1.02 kB
import moment, { Moment } from 'moment-jalaali'; import React from 'react'; declare type DatepickerProps = { icon?: React.ReactNode; placeholder?: string; className?: string; errorMessage?: string; disabled?: boolean; containerStyle?: string; defaultValue?: moment.MomentInput; value?: moment.MomentInput | undefined; onChangeValue?: (value: Moment | undefined) => void; showTime?: "onlyTime" | "onlyDate" | "both"; clearable?: boolean; clearButtonClassName?: string; clearButtonSvgClassName?: string; }; declare const Datepicker: React.FC<DatepickerProps>; declare type TimepickerProps = { icon?: React.ReactNode; placeholder?: string; className?: string; errorMessage?: string; disabled?: boolean; containerStyle?: string; defaultValue?: moment.MomentInput; value?: moment.MomentInput; onChangeValue?: (value: Moment | undefined) => void; }; declare const Timepicker: React.FC<TimepickerProps>; export { Datepicker, Timepicker };