指標グループStatGroupExperimental
The summary metric strip: a responsive grid of Statistics (Card-wrapped by default) — the KPI row almost every back-office screen opens with (件数 / 金額 / 期限 / アラート …). Fixed or responsive column counts ({ base: 2, md: 4 }). Presentational and RSC-safe (no function props) — pass plain data. For one metric use Statistic; for the row, use this.
プレビュー
Props
表は横にスクロールできます
| プロパティ | 型 | 初期値 | 説明 |
|---|---|---|---|
| items | StatisticProps[] | - | 各指標。Statistic の全プロップ(label/value/change/trend/tone/hint)。 |
| cols | 1–6 | { base?, sm?, md?, lg?, xl? } | { base: 2, md: 4 } | 列数(固定 or レスポンシブ)。 |
| card | boolean | true | 各 Statistic を Card で囲む(back-office のサマリ行)。 |
Usage
import { StatGroup } from "@gunjo/ui"
<StatGroup
cols={{ base: 2, md: 3, lg: 5 }}
items={[
{ label: "請求対象者", value: "6名", hint: "未確定 3件" },
{ label: "請求総額", value: "¥1,224,520" },
{ label: "限度額超過者", value: "1名", tone: "negative" },
{ label: "提出期限", value: "6/10", change: "あと4日", trend: "down" },
]}
/>