gregorian-ethiopian-datepicker
Version:
A React date picker component supporting both Gregorian and Ethiopian calendars
22 lines (21 loc) • 556 B
TypeScript
export type CalendarType = 'gregorian' | 'ethiopian';
export interface DatePickerProps {
value?: Date;
onChange?: (date: Date) => void;
calendarType?: CalendarType;
className?: string;
minDate?: Date;
maxDate?: Date;
disabled?: boolean;
showYearNavigation?: boolean;
showMonthNavigation?: boolean;
locale?: string;
placeholder: string;
}
export interface CalendarViewProps {
currentDate: Date;
onDateSelect: (date: Date) => void;
calendarType: CalendarType;
minDate?: Date;
maxDate?: Date;
}