Breaking changes
According to the issue named : "Do Mui Icon Optional", I took the choice to remove the @mui/icons-material package as peerDeps.
So from now, you're not obliged to install the package. You can use any icon library .
If you're using MUI icon and want to fix the Breaking Change :
import AttachFileIcon from '@mui/icons-material/AttachFile'
import CloseIcon from '@mui/icons-material/Close'
// ...
function myComponent() {
return <MuiFileInput
clearIconButtonProps={{
children: <CloseIcon fontSize="small" />
}}
InputProps={{
startAdornment: <AttachFileIcon />
}}
// ...restOfYourProps
/>
}
closeButtonProps
has been renamed byclearIconButtonProps