react-tailwindcss-datepicker-sct
Version:
A modern React Datepicker using Tailwind CSS 3
37 lines (36 loc) • 1.25 kB
TypeScript
import dayjs from "dayjs";
import React from "react";
import { Configs, Period, DateValueType, DateType, DateRangeType } from "../types";
interface DatepickerStore {
asSingle?: boolean;
primaryColor: string;
configs?: Configs | null;
calendarContainer: React.RefObject<HTMLDivElement> | null;
arrowContainer: React.RefObject<HTMLDivElement> | null;
hideDatepicker: () => void;
period: Period;
changePeriod: (period: Period) => void;
dayHover: string | null;
changeDayHover: (day: string | null) => void;
inputText: string;
changeInputText: (text: string) => void;
updateFirstDate: (date: dayjs.Dayjs) => void;
changeDatepickerValue: (value: DateValueType) => void;
showFooter?: boolean;
placeholder?: string | null;
separator?: string;
i18n: string;
value: DateValueType;
disabled?: boolean;
inputClassName?: string | null;
containerClassName?: string | null;
readOnly?: boolean;
displayFormat?: string;
minDate?: DateType | null;
maxDate?: DateType | null;
disabledDates?: DateRangeType[] | null;
inputId?: string;
inputName?: string;
}
declare const DatepickerContext: React.Context<DatepickerStore>;
export default DatepickerContext;