@kitn.ai/ui
Version:
Framework-agnostic, Shadow-DOM web components for building AI chat interfaces — works in React, Vue, Angular, Svelte, or plain HTML. Authored in SolidJS.
17 lines (16 loc) • 674 B
TypeScript
import { JSX } from 'solid-js';
export interface StatProps extends JSX.HTMLAttributes<HTMLDivElement> {
/** The small muted caption above the value. */
label?: string;
/** The big value. A default-slot / `children` override wins over this. */
value?: string;
/** A small caption below the value. */
hint?: string;
}
/**
* A single metric / KPI tile: a muted label on top, a large value below, and an
* optional hint caption. The consumer arranges tiles in their own CSS grid — this
* is ONE cell. `children` (the default slot in the element) override `value` for
* rich content.
*/
export declare function Stat(props: StatProps): JSX.Element;