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.
12 lines (11 loc) • 323 B
TypeScript
import React from "react";
import { Dayjs } from "dayjs";
interface PropsType {
value: Dayjs | null;
onChange: (date: Dayjs | null) => void;
locale?: "fa" | "en";
calendarType?: "jalali" | "gregory";
direction?: "rtl" | "ltr";
}
declare const DatePicker: React.FC<PropsType>;
export default DatePicker;