Can the icon of a datepicker be changed in ant desing?

Viewed 1316

I want to change the icon of a date picker from the ant design framework to a material ui icon is it possible to do that? enter image description here

icono of material ui

enter image description here

1 Answers

Yup.

You can use suffixIcon property.

ex;

import DeleteIcon from "@material-ui/icons/Delete";

const deleteIcon = <DeleteIcon />;

...
    <DatePicker onChange={onChange} suffixIcon={deleteIcon} />
...

Related