numdisplay
Version:
A flexible React component for displaying numbers with smart formatting and type-specific styling
15 lines • 441 B
TypeScript
import { ReactNode } from "react";
export interface CoreNumDisplayProps {
value: string;
type: "dollar" | "percentage" | "token";
decimals?: number;
className?: string;
showPlusSign?: boolean;
}
export interface NumDisplayProps extends CoreNumDisplayProps {
suffix?: string | ReactNode;
prefix?: string | ReactNode;
prefixClassName?: string;
suffixClassName?: string;
}
//# sourceMappingURL=types.d.ts.map