mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Merge pull request #32699 from fayway/react-flatpickr-className
[@types/react-flatpickr] Add className to DateTimePickerProps
This commit is contained in:
Vendored
+2
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for react-flatpickr 3.6
|
||||
// Type definitions for react-flatpickr 3.7
|
||||
// Project: https://github.com/coderhaoxin/react-flatpickr
|
||||
// Definitions by: begincalendar <https://github.com/begincalendar>
|
||||
// snaveevans <https://github.com/snaveevans>
|
||||
@@ -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,8 @@ import DatePicker from "react-flatpickr";
|
||||
|
||||
const noParamsElement = <DatePicker />;
|
||||
|
||||
const classNameElement = <DatePicker className={"test"} />;
|
||||
|
||||
const defaultValueElement = <DatePicker defaultValue={"Default value"} />;
|
||||
|
||||
const options = {
|
||||
|
||||
Reference in New Issue
Block a user