Skip to content

Commit

Permalink
[material-ui][TextField][docs] Replace InputProps with slotProps.inpu…
Browse files Browse the repository at this point in the history
…t in demo (#44288)
  • Loading branch information
sai6855 authored Nov 1, 2024
1 parent 0f9ae8a commit 6d94972
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/data/material/components/text-fields/text-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,12 @@ const MyInputComponent = React.forwardRef((props, ref) => {

// usage
<TextField
InputProps={{
inputComponent: MyInputComponent,
inputProps: {
component: SomeThirdPartyComponent,
slotProps={{
input: {
inputComponent: MyInputComponent,
inputProps: {
component: SomeThirdPartyComponent,
},
},
}}
/>;
Expand Down

0 comments on commit 6d94972

Please sign in to comment.