Skip to main content

Numeric

Numeric component provides ability to format numeric values. Full list of supported properties you can find on MDN page

To use this component, you need to import the component as the followings:

React#

import { Numeric } from '@eo-locale/react';

Preact#

import { Numeric } from '@eo-locale/preact';

React Native#

import { Numeric } from '@eo-locale/react-native';

And add into your application like this:

export function SomeComponent() {
return <Numeric language={appLanguage} value={123456789.321} />;
}

As above example, component will display 123,456,789.321  
Choose your language:Â