Number
This field is used to display a number formatted according to the browser locale, right aligned. and uses Intl to display date format.
You can swizzle this component with the Refine CLI to customize it.
Usage
<NumberField> uses Intl.NumberFormat() if available, passing the locales and options props as arguments. This allows a perfect display of decimals, currencies, percentages, etc.
See Intl.NumberFormat documentation for the options prop syntax.
If Intl is not available, <NumberField> outputs numbers as is (and ignores the locales and options props).
API Reference
Properties
| Property | Type | Description |
|---|---|---|
value ﹡ | | Number value |
locale | | Override the browser locale in the date formatting. Passed as first argument to |
options | | Number formatting options. Passed as second argument to |
It also accepts all props of Material UI Text.