UNPKG

react-flex-picker

Version:

Helps to build your own calendar by using prepared components and api to control them

30 lines (29 loc) 830 B
import * as React from 'react'; import { Moment } from 'moment'; import { Focus } from '../PickerProvider'; export declare class Year extends React.PureComponent<IYearProps> { constructor(props: any); handleClick(date: Moment): (e: any) => void; handleHover(date: Moment): (e: any) => void; handleTitleClick(date: any): () => void; render(): JSX.Element; } export interface IYearProps { ref: any; year: number; locale?: string; startDate?: Moment; endDate?: Moment; onClick: (date: Moment) => void; onTitleClick: (date: Moment) => void; minDate?: Moment; maxDate?: Moment; hoveredDate?: Moment | Moment[]; onHover: (date: Moment) => void; focus: Focus; styles?: { [key: string]: string; }; minDaysCount?: number; maxDaysCount?: number; }