DEV Community

Discussion on: How to extend an Ant Design component

Collapse
 
saraogipraveen profile image
Praveen Saraogi

How do you import DatePickerProps from antd? Which version are you using? Since for me it is not supported. I am not able to import interfaces from antd.
I am using antd 4.4.1

Collapse
 
jurajuki profile image
Juraj Pavlović

The version mentioned we had in the project at the time was ^4.16.1
You can easily import AntD types such as DatePickerProps for all versions above 4. You should be able to import it just like mentioned in the example