@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
26 lines • 914 B
text/typescript
import { IconProps } from "../../Icon/type.mjs";
import "../../Icon/index.mjs";
import { ReactNode } from "react";
//#region src/dashboard/StatCard/type.d.ts
type StatDirection = 'up' | 'down' | 'flat';
/** Top-to-bottom gray wash. Decorative color fields stay in the app. */
type StatWash = 'gray';
interface StatCardProps {
/** Control rendered on the label row, such as a menu. */
action?: ReactNode;
/** Change amount, colored by `direction`. */
delta?: string;
direction?: StatDirection;
/** Line under the figure. */
hint?: string;
label: ReactNode;
/** Corner glyph. Hidden from assistive tech so it does not repeat the label. */
mark?: IconProps['icon'];
/** Overview scale: label, then a large figure, then the note. */
prominent?: boolean;
value: ReactNode;
wash?: StatWash;
}
//#endregion
export { StatCardProps, StatDirection, StatWash };
//# sourceMappingURL=type.d.mts.map