Skip to content

Commit

Permalink
Add comment on doc to not use customInput as render prop.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yadav committed Aug 13, 2023
1 parent 9e0fd53 commit 1100ad7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions documentation/v5/docs/props.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import { TextField } from '@mui/material';
<NumericFormat value={12323} customInput={TextField} />;
```

**Note**: customInput expects reference of component (not a render prop), if you pass an inline component like this `<NumericFormat customInput={() => <TextField />} />`, it will not work.

<details>
<summary>
Demo
Expand Down

0 comments on commit 1100ad7

Please sign in to comment.