Stats (am-stats)
am-stats 用來呈現 dashboard 或 summary page 的數值指標。趨勢除了顏色,也會輸出 Increase、Decrease 或 No change 文字,避免只靠色彩傳達狀態。
<Stats title="Workspace metrics" columns="3" items={[ { label: "Active projects", value: "24", detail: "Across 4 teams", change: "+12%", trend: "up" }, { label: "Review queue", value: "7", detail: "Needs attention", change: "-3", trend: "down" }, { label: "Deployments", value: "98%", detail: "Successful this month", change: "0%", trend: "neutral" }, ]}/>數值、趨勢與 optional href 都是 consumer-owned data;元件不查詢資料、不計算 business KPI,也不代表任何 billing 或 entitlement 狀態。