@start-base/react-form-elements
Version:
Simplify form elements and form management. Selection of user friendly inputs and wide customization abilities to match your design and functionality.
37 lines (34 loc) • 1.18 kB
TypeScript
import React from 'react';
import { Props, SelectInstance } from 'react-select';
import { Locale } from 'date-fns';
import { FieldError } from 'react-hook-form';
interface MultipleDatePickerProps extends Props {
name: string;
onChange: (event: {
target: {
name: string;
value: Date[];
};
}) => void;
error?: boolean | string | {
message?: string;
} | null | undefined | FieldError;
label?: string | null;
placeholder?: string | null;
value?: Date[] | undefined;
locale?: Locale | null;
format?: string;
inputClassName?: string | null;
labelClassName?: string | null;
errorClassName?: string | null;
calendarClassName?: string | null;
disableShrink?: boolean;
disabled?: boolean;
classNames?: any;
components?: any;
onFocus?: (event: React.FocusEvent) => void;
onBlur?: (event: React.FocusEvent) => void;
[key: string]: any;
}
declare const MultipleDatePicker: React.ForwardRefExoticComponent<Omit<MultipleDatePickerProps, "ref"> & React.RefAttributes<SelectInstance>>;
export { type MultipleDatePickerProps, MultipleDatePicker as default };