UNPKG

react-nepali-datetime-picker

Version:

A simple and reusable Nepali calendar, date and time picker components for React.

29 lines (28 loc) 848 B
/// <reference types="react" /> import { InputProps } from '../../components/ui/Input/Input'; import { Language } from '../../types/Language'; import { NepaliDate } from '../../types/NepaliDate'; export interface DateInputProps { className?: string; lang?: Language; value?: NepaliDate; 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 DateInput: import("react").ForwardRefExoticComponent<DateInputProps & import("react").RefAttributes<HTMLDivElement>>; export type DateInputTargetValue = { valid: boolean; value: NepaliDate | undefined; };