UNPKG

@rnwonder/react-date-picker

Version:

A lightweight, customizable, and accessible date picker component for React applications.

26 lines (24 loc) 1.19 kB
import { DateObjectUnits, DatePickerType, IMonthSelectorType, Locale, MakeOptionalRequired, SelectorColorsAndClassNames, SelectorType } from '../../interface/general'; import { SelectorProps } from '../Selector'; import { default as React, SetStateAction } from 'react'; export interface MonthSelectorProps extends SelectorColorsAndClassNames { month: number; setMonth: React.Dispatch<SetStateAction<number>>; type?: DatePickerType; monthSelectorFormat?: IMonthSelectorType; zIndex?: number; locale?: Locale; minDate?: MakeOptionalRequired<DateObjectUnits>; maxDate?: MakeOptionalRequired<DateObjectUnits>; year?: number; twoMonthsDisplay?: boolean; onMonthChange?: (month: number) => void; startDay?: DateObjectUnits; monthSelectorType?: SelectorType; setShowSelectorTwo?: React.Dispatch<SetStateAction<boolean>>; setSelectorTwoProps?: React.Dispatch<SetStateAction<SelectorProps>>; showSelectorTwo?: boolean; noButtonAnimation?: boolean; monthSelectorTopLabel?: string; } export declare const MonthSelector: React.MemoExoticComponent<React.ForwardRefExoticComponent<MonthSelectorProps & React.RefAttributes<unknown>>>;