UNPKG

numdisplay

Version:

A flexible React component for displaying numbers with smart formatting and type-specific styling

23 lines (19 loc) 673 B
import React, { ReactNode } from 'react'; interface CoreNumDisplayProps { value: string; type: "dollar" | "percentage" | "token"; decimals?: number; className?: string; showPlusSign?: boolean; } interface NumDisplayProps extends CoreNumDisplayProps { suffix?: string | ReactNode; prefix?: string | ReactNode; prefixClassName?: string; suffixClassName?: string; } declare const CoreNumDisplay: React.FC<CoreNumDisplayProps>; declare const NumDisplay: React.FC<NumDisplayProps>; //# sourceMappingURL=NumDisplay.d.ts.map export { CoreNumDisplay, NumDisplay, NumDisplay as default }; export type { CoreNumDisplayProps, NumDisplayProps };