Reputation: 329
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?
icono of material ui
Upvotes: 4
Views: 4423
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