zaman
Version:
React component that helps you to makes simple Farsi/Jalali/Shamsi date picker. It also has range date picker you can select multiple days in multiple months.
15 lines (14 loc) • 638 B
TypeScript
import type { InputHTMLAttributes } from 'react';
import type { BaseProps, DatePickerValue, DaysRange, Positions } from '../../types';
import type { CalendarDefaultProps, CalendarRangeProps } from '../Calendar/Calendar.types';
export interface DatePickerBaseProps extends BaseProps {
defaultValue?: DatePickerValue;
weekends?: DaysRange[];
show?: boolean;
inputClass?: string;
className?: string;
inputAttributes?: InputHTMLAttributes<HTMLInputElement>;
position?: Positions;
customShowDateFormat?: string;
}
export type DatePickerProps = DatePickerBaseProps & (CalendarRangeProps | CalendarDefaultProps);