@nexusui/components
Version:
These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.
16 lines (15 loc) • 637 B
TypeScript
import { INumberFormatter } from './types';
/**
*
* @param number the number to format
* @param options configuration options for formatting the provided number
* @returns a formatted version of the number as a string
*/
export declare const formatNumber: (number: number, options?: Omit<Partial<INumberFormatter>, "children">) => string;
/**
* A NumberFormatter component which will format its child
* according to the configuration options passed as props or
* available through a NumberFormatterContext.
*/
declare const NumberFormatterComponent: (props: INumberFormatter) => string;
export default NumberFormatterComponent;