UNPKG

@hhgtech/hhg-components

Version:
30 lines (29 loc) 1.08 kB
import React from 'react'; import { Modifier } from 'react-day-picker/types/Modifiers'; import { LocaleType } from "../../../interfaces/types"; export type Props = { alignRight?: boolean; locale?: LocaleType; placeholder?: string; displayDateFormat?: string; pickedDate?: Date | Array<Date>; customInput?: React.FunctionComponent<DatePickerCustomInputProps>; onChange?: (d: Date) => void; className?: string; isStatic?: boolean; disabledDays?: Modifier | Modifier[]; modifiers?: { start?: Date; end?: Date; }; UnHideOnClickOutside?: boolean; initialMonth?: Date; }; export type DatePickerCustomInputProps = { onClick: () => void; }; /** * @deprecated Consider to use at '@hhgtech/hhg-components/mantine' */ declare const DatePicker: ({ alignRight, placeholder, displayDateFormat, onChange, customInput: CustomInput, pickedDate, className, isStatic, disabledDays, modifiers, UnHideOnClickOutside, initialMonth, locale, }: Props) => React.JSX.Element; export { DatePicker };