Files
ersatztv/design-system/components/data-display/Stat.d.ts
T
2026-07-02 07:37:00 +02:00

19 lines
504 B
TypeScript

import * as React from "react";
export interface StatProps {
label: string;
/** The metric value — rendered in tabular mono. */
value: React.ReactNode;
unit?: string;
/** Small change indicator, e.g. "+3" or "2 warnings". */
delta?: React.ReactNode;
deltaTone?: "up" | "down" | "neutral";
icon?: React.ReactNode;
style?: React.CSSProperties;
}
/**
* Dashboard KPI — mono tabular value with label, optional delta and icon.
*/
export function Stat(props: StatProps): JSX.Element;