date-range-picker-mui
Version:
A React date range picker implementation using @mui.
24 lines (23 loc) • 695 B
TypeScript
import React from "react";
import { Locale } from "date-fns/locale";
import { DateRange, NavigationAction } from "../types";
interface MonthProps {
value: Date;
marker: symbol;
dateRange: DateRange;
minDate: Date;
maxDate: Date;
navState: [boolean, boolean];
setValue: (date: Date) => void;
helpers: {
inHoverRange: (day: Date) => boolean;
};
handlers: {
onDayClick: (day: Date) => void;
onDayHover: (day: Date) => void;
onMonthNavigate: (marker: symbol, action: NavigationAction) => void;
};
locale?: Locale;
}
declare const Month: React.FunctionComponent<MonthProps>;
export default Month;