UNPKG

habesha-datepicker

Version:

An Ethiopian date picker component designed for React applications.

16 lines (15 loc) 626 B
import { TextField } from "@mui/material"; import React from "react"; import { DatePicker } from "@mui/x-date-pickers"; type CustomFieldProps = Omit<React.ComponentProps<typeof TextField>, "onChange" | "value" | "InputProps">; export type EtDateFieldProps = Pick<React.ComponentProps<typeof DatePicker>, "disablePast" | "disableFuture"> & { minDate?: Date; maxDate?: Date; }; type EtDatePickerProps = { onClick?: () => void; value?: Date | null; onChange?: (date: Date) => void; } & CustomFieldProps & EtDateFieldProps; declare const EtDatePicker: React.FC<EtDatePickerProps>; export default EtDatePicker;