@tiller-ds/data-display
Version:
Data display module of Tiller Design System
10 lines (9 loc) • 456 B
TypeScript
/// <reference types="react" />
export declare type NumberProps = {
/**
* Data handed to the component in a valid string format or a number format.
* Other props come from Intl.NumberFormatOptions (https://bit.ly/3yHqaPz)
*/
children: number | string;
} & Omit<Intl.NumberFormatOptions, "localeMatcher" | "style" | "currencyDisplay">;
export default function Number({ children, ...props }: NumberProps): JSX.Element | null;