Skip to content

Commit

Permalink
replace InputProps with slotProps.input
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 committed Nov 1, 2024
1 parent 675c480 commit 83b0a47
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 83b0a47

Please sign in to comment.