mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
[@types/react-flatpickr] Add className to DateTimePickerProps
This commit is contained in:
Vendored
+1
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user