react-nepali-datetime-picker
Version:
A simple and reusable Nepali calendar, date and time picker components for React.
36 lines (35 loc) • 1.1 kB
TypeScript
/// <reference types="react" />
import { InputProps } from '../../components/ui/Input/Input';
import { HourFormat } from '../../types/HourFormat';
import { Language } from '../../types/Language';
import { NepaliDate } from '../../types/NepaliDate';
import { NepaliDateTime } from '../../types/NepaliDateTime';
import { NepaliTime } from '../../types/NepaliTime';
export interface DateTimeInputProps {
className?: string;
lang?: Language;
hourFormat?: HourFormat;
value?: NepaliDateTime;
input?: InputProps;
error?: {
message?: string;
show?: boolean;
rootClassName?: string;
className?: string;
};
success?: {
message?: string;
show?: boolean;
rootClassName?: string;
className?: string;
};
fullWidth?: boolean;
}
export declare const DateTimeInput: import("react").ForwardRefExoticComponent<DateTimeInputProps & import("react").RefAttributes<HTMLDivElement>>;
export type DateTimeInputTargetValue = {
valid: boolean;
value?: {
date: NepaliDate;
time: NepaliTime;
};
};