dany952
dany952

Reputation: 329

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

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

Upvotes: 4

Views: 4423

Answers (1)

LogiStack
LogiStack

Reputation: 1016

Yup.

You can use suffixIcon property.

ex;

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

const deleteIcon = <DeleteIcon />;

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

Upvotes: 6

Related Questions