diff --git a/types/react-flatpickr/index.d.ts b/types/react-flatpickr/index.d.ts index c867527b06..c1420a6b26 100644 --- a/types/react-flatpickr/index.d.ts +++ b/types/react-flatpickr/index.d.ts @@ -20,6 +20,7 @@ export interface DateTimePickerProps { onValueUpdate?: flatpickr.Options.Hook; onDayCreate?: flatpickr.Options.Hook; value?: string | Date | number | ReadonlyArray; + className?: string; } export default class DatePicker extends Component {} diff --git a/types/react-flatpickr/react-flatpickr-tests.tsx b/types/react-flatpickr/react-flatpickr-tests.tsx index 7a1c64c266..f7834c97a8 100644 --- a/types/react-flatpickr/react-flatpickr-tests.tsx +++ b/types/react-flatpickr/react-flatpickr-tests.tsx @@ -4,6 +4,9 @@ import DatePicker from "react-flatpickr"; const noParamsElement = ; +const classNameElement = ; + + const defaultValueElement = ; const options = {