react-jalali-picker
Version:
A React component library for selecting dates, featuring both a DatePicker and a RangePicker that support Jalali (Persian) and Gregorian calendars.
18 lines (17 loc) • 428 B
TypeScript
import React from "react";
import { Dayjs } from "dayjs";
interface PropsType {
value: {
start: Dayjs | null;
end: Dayjs | null;
};
onChange: (range: {
start: Dayjs | null;
end: Dayjs | null;
}) => void;
locale?: "fa" | "en";
calendarType?: "jalali" | "gregory";
direction?: "rtl" | "ltr";
}
declare const RangePicker: React.FC<PropsType>;
export default RangePicker;