Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- Fix thousandSeparator missing from documentation #836

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading