Components (172)
Stat Card
Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.
Loading Stat Card…
Usage
import { StatCard } from "ui-kit/components/stat-card";Props
| Prop | Type | Default | Description |
|---|---|---|---|
label* | string | — | — |
value* | number | string | — | — |
format | (n: number) => string | plain | — |
change | number | — | — |
changeFormat | (n: number) => string | percent | — |
changeLabel | string | — | — |
lowerIsBetter | boolean | false | — |
icon | ReactNode | — | — |
chart | ReactNode | — | — |
layout | "stacked" | "inline" | "stacked" | — |
footer | ReactNode | — | — |
loading | boolean | false | — |
href | string | — | — |
onClick | () => void | — | — |
hitProps | HTMLAttributes<HTMLElement> | — | — |
action | ReactNode | — | — |
selected | boolean | — | — |
className | string | — | — |
style | CSSProperties | — | — |