UNPKG

thaidatepicker-react

Version:

Thaidatepicker-react is a component for ReactJS that likes other DatePicker, but all we need is Buddhist Year (25XX - aka Thai Year) come with the right render day (example: Sat, 29 Feb 2020 must be equal to Sat, 29 Feb 2563) so I wish this component will

5 lines (4 loc) 621 B
import React, { PropsWithChildren } from "react"; import { type ReactDatePickerCustomHeaderProps } from "react-datepicker"; export declare const HeaderContainer: React.FC<PropsWithChildren>; export declare const CustomHeader: (prevButtonIcon?: React.ReactNode, nextButtonIcon?: React.ReactNode, prevButtonClassName?: string, nextButtonClassName?: string, monthSelectClassName?: string, yearSelectClassName?: string, yearOptions?: Array<number>) => ({ date, changeYear, changeMonth, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled, }: ReactDatePickerCustomHeaderProps) => React.JSX.Element;