[@types/react-flatpickr] Add className to DateTimePickerProps

This commit is contained in:
Fayçal Tirich
2019-02-01 09:47:33 +01:00
parent 028e633351
commit dbf333e4d1
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -20,6 +20,7 @@ export interface DateTimePickerProps {
onValueUpdate?: flatpickr.Options.Hook;
onDayCreate?: flatpickr.Options.Hook;
value?: string | Date | number | ReadonlyArray<string | Date | number>;
className?: string;
}
export default class DatePicker extends Component<DateTimePickerProps> {}
@@ -4,6 +4,9 @@ import DatePicker from "react-flatpickr";
const noParamsElement = <DatePicker />;
const classNameElement = <DatePicker className={"test"} />;
const defaultValueElement = <DatePicker defaultValue={"Default value"} />;
const options = {