react-calendar
Version:
Ultimate calendar for your React app.
30 lines (29 loc) • 1.58 kB
TypeScript
import React from 'react';
import PropTypes from 'prop-types';
import Tile from '../Tile';
import { formatYear as defaultFormatYear } from '../shared/dateFormatter';
type DecadeProps = {
classes?: string[];
formatYear?: typeof defaultFormatYear;
} & Omit<React.ComponentProps<typeof Tile>, 'children' | 'maxDateTransform' | 'minDateTransform' | 'view'>;
declare function Decade({ classes, formatYear, ...otherProps }: DecadeProps): JSX.Element;
declare namespace Decade {
var propTypes: {
formatYear: 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 Decade;