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
16 lines (15 loc) • 465 B
TypeScript
import { type ClassValue } from "clsx";
/**
* Convert christ year to buddhist year (+543)
*/
export declare const ConvertToThaiYear: (christYear: number) => number;
/**
* Get highlighted list by date
*/
export declare const GetHighlightByDate: (date?: Date) => {
"react-datepicker__day--highlighted-today": Date[];
}[];
/**
* Merge and deduplicate classnames using tailwind-merge and clsx.
*/
export declare const cn: (...inputs: ClassValue[]) => string;