UNPKG

react-tailwindcss-datepicker-sct

Version:
41 lines (40 loc) 1.13 kB
import React from "react"; import { DateValueType, DateType, DateRangeType } from "../types"; interface Props { primaryColor?: string; value: DateValueType; onChange: (value: DateValueType) => void; useRange?: boolean; showFooter?: boolean; showShortcuts?: boolean; configs?: { shortcuts?: { today?: string; yesterday?: string; past?: (period: number) => string; currentMonth?: string; pastMonth?: string; } | null; footer?: { cancel?: string; apply?: string; } | null; } | null; asSingle?: boolean; placeholder?: string; separator?: string; startFrom?: Date | null; i18n?: string; disabled?: boolean; inputClassName?: string | null; inputId?: string; inputName?: string; containerClassName?: string | null; displayFormat?: string; readOnly?: boolean; minDate?: DateType | null; maxDate?: DateType | null; disabledDates?: DateRangeType[] | null; } declare const Datepicker: React.FC<Props>; export default Datepicker;