react-calendar
Version:
Ultimate calendar for your React app.
32 lines (31 loc) • 1.78 kB
TypeScript
import React from 'react';
import PropTypes from 'prop-types';
import Tile from '../Tile';
import { formatMonth as defaultFormatMonth, formatMonthYear as defaultFormatMonthYear } from '../shared/dateFormatter';
type MonthProps = {
classes?: string[];
formatMonth?: typeof defaultFormatMonth;
formatMonthYear?: typeof defaultFormatMonthYear;
} & Omit<React.ComponentProps<typeof Tile>, 'children' | 'formatAbbr' | 'maxDateTransform' | 'minDateTransform' | 'view'>;
declare function Month({ classes, formatMonth, formatMonthYear, ...otherProps }: MonthProps): JSX.Element;
declare namespace Month {
var propTypes: {
formatMonth: PropTypes.Requireable<(...args: any[]) => any>;
formatMonthYear: PropTypes.Requireable<(...args: any[]) => any>;
activeStartDate: PropTypes.Validator<Date>;
classes: PropTypes.Validator<(string | null | undefined)[]>;
date: PropTypes.Validator<Date>;
locale: PropTypes.Requireable<string>;
maxDate: typeof import("../shared/propTypes").isMaxDate;
minDate: typeof import("../shared/propTypes").isMinDate;
onClick: PropTypes.Requireable<(...args: any[]) => any>;
onMouseOver: PropTypes.Requireable<(...args: any[]) => any>;
style: PropTypes.Requireable<{
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
}>;
tileClassName: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | NonNullable<string | (string | null | undefined)[] | null | undefined> | null | undefined>>;
tileContent: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike | ((...args: any[]) => any)>>;
tileDisabled: PropTypes.Requireable<(...args: any[]) => any>;
};
}
export default Month;