Skip to content

Commit

Permalink
[docs][material-ui] Fix incorrect slotProp name in the TextField
Browse files Browse the repository at this point in the history
…deprecation note. (#43985)
  • Loading branch information
Chee7ah authored Oct 4, 2024
1 parent 95fd6b5 commit be68b09
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1539,13 +1539,13 @@ All of the TextField's slot props (`*Props`) props were deprecated in favor of e
- inputProps={CustomHtmlInputProps}
- SelectProps={CustomSelectProps}
- InputLabelProps={CustomInputLabelProps}
- FormHelperTextProps={CustomFormHelperProps}
- FormHelperTextProps={CustomFormHelperTextProps}
+ slotProps={{
+ input: CustomInputProps
+ htmlInput: CustomHtmlInputProps
+ select: CustomSelectProps
+ inputLabel: CustomInputLabelProps
+ formHelper: CustomFormHelperProps
+ formHelperText: CustomFormHelperTextProps
+ }}
/>
```
Expand Down

0 comments on commit be68b09

Please sign in to comment.