UNPKG

@brightsoftware/date-np

Version:

Simple & minimal Nepali date picker that just works.

20 lines (19 loc) 750 B
import { type ComponentProps } from "react"; import { type TimeFormat, type TimeValue } from "./hooks/useTimePicker"; import { TimePickerInput } from "./components/time-picker-input"; type TimePickerWithoutInput = { inputProps?: never; shouldShowInput?: false; }; type TimePickerWithInput = { inputProps?: ComponentProps<typeof TimePickerInput>; shouldShowInput?: boolean; }; export type TimePickerProps = { format?: TimeFormat; defaultTime?: Partial<TimeValue>; className?: string; onTimeChange?: (time: TimeValue) => void; } & (TimePickerWithoutInput | TimePickerWithInput); export declare const TimePicker: ({ format, defaultTime, ...props }: TimePickerProps) => import("react/jsx-runtime").JSX.Element; export {};