From eb938359c82412a35cf797cd25e764122cb000fc Mon Sep 17 00:00:00 2001 From: Hanno Fellmann Date: Fri, 10 Aug 2018 11:07:26 +0200 Subject: [PATCH] Add className attribute to react-flatpickr --- types/react-flatpickr/index.d.ts | 1 + types/react-flatpickr/react-flatpickr-tests.tsx | 2 ++ 2 files changed, 3 insertions(+) diff --git a/types/react-flatpickr/index.d.ts b/types/react-flatpickr/index.d.ts index 4586774568..a0a9725ccd 100644 --- a/types/react-flatpickr/index.d.ts +++ b/types/react-flatpickr/index.d.ts @@ -12,6 +12,7 @@ export interface DateTimePickerProps { options?: flatpickr.Options.Options; onChange?: flatpickr.Options.Hook; value?: string; + 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 fbbb6f45a7..452d8529b4 100644 --- a/types/react-flatpickr/react-flatpickr-tests.tsx +++ b/types/react-flatpickr/react-flatpickr-tests.tsx @@ -18,3 +18,5 @@ const onChange = ( const onChangeElement = ; const valueElement = ; + +const classNameElement = ;