19 lines
504 B
TypeScript
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;
|