npm mui-file-input 4.0.0
v4.0.0

latest releases: 6.0.0, 4.0.6, 4.0.5...
10 months ago

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 by clearIconButtonProps

Don't miss a new mui-file-input release

NewReleases is sending notifications on new releases.