UNPKG

@coconut-software/ui

Version:

React components for faster and easier web development.

24 lines (23 loc) 724 B
import type { Ref, RefObject } from 'react'; export interface ChangeEvent { target: { value: Date | (Date | null)[] | null; }; } export interface DatePickerProps { clearRef?: Ref<HTMLButtonElement>; condensed?: boolean; initialDate?: [Date, Date] | Date | null; inputRef?: RefObject<HTMLInputElement>; inputValueRef?: RefObject<string>; mode?: Modes; onChange?: (event: ChangeEvent) => void; open?: boolean; } export declare enum Modes { Day = 0, Week = 1, Range = 2 } declare function DatePicker({ clearRef, condensed, initialDate, inputRef, inputValueRef, mode, onChange, open, }: DatePickerProps): JSX.Element; export default DatePicker;