Skip to main content

TextField inheritance

While not explicitly documented, the props of the MUI TextField component are also available on the MuiFileInput component.

See: https://mui.com/material-ui/api/text-field/

Example

import AttachFileIcon from '@mui/icons-material/AttachFile'
// ...

<MuiFileInput
size="small"
variant="outlined"
disabled
InputProps={{
inputProps: {
accept: 'video/*'
},
startAdornment: <AttachFileIcon />
}}
/>