@brightsoftware/date-np
Version:
Simple & minimal Nepali date picker that just works.
23 lines (22 loc) • 630 B
TypeScript
import React from "react";
declare const PickerInput: React.ForwardRefExoticComponent<{
label?: string;
className?: string;
required?: boolean;
/**
* default date for the picker
* by default, the selected date is null
*/
defaultDate?: Date | import("../NepaliDate").NepaliDate;
/**
* format for the date input
* @default ISO
*/
dateFormat?: string;
/**
* default mode for the picker
* @default "ad"
*/
defaultLocale?: "AD" | "BS";
} & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
export default PickerInput;