Skip to content

Commit

Permalink
- Fix thousandSeparator missing from documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-shoja authored and s-yadav committed Apr 28, 2024
1 parent 5a4030c commit 280ea0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion documentation/v5/docs/numeric_format.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ This allow supporting custom input components with number format.
import { NumericFormat } from 'react-number-format';
import { TextField } from '@mui/material';

<NumericFormat value={12323} customInput={TextField} />;
<NumericFormat value={12323} customInput={TextField} thousandSeparator />;
```

<details>
Expand Down
2 changes: 1 addition & 1 deletion documentation/v5/docs/props.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This allow supporting custom input components with number format.
import { NumericFormat } from 'react-number-format';
import { TextField } from '@mui/material';

<NumericFormat value={12323} customInput={TextField} />;
<NumericFormat value={12323} customInput={TextField} thousandSeparator/>;
```

**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.
Expand Down

0 comments on commit 280ea0b

Please sign in to comment.