Stat

Statは、数値やデータをボックス内に表示するために使用されます。

Total Page Views
1,993,818
21% more than last month

使い方

import { Stat } from "@yamada-ui/react"
<Stat.Root>
  <Stat.Label />
  <Stat.Value />
  <Stat.Unit />
  <Stat.HelperMessage />
  <Stat.Icon />
</Stat.Root>

サイズを変更する

Time to complete
8hr18min
Time to complete
8hr18min
Time to complete
8hr18min
Time to complete
8hr18min

カラースキームを変更する

Total Likes
818K
21% more than last month
Total Likes
818K
21% more than last month

コンテンツを中央寄せにする

コンテンツを中央寄せにする場合は、centerContenttrueに設定します。

Downloads
18K
From August 1 to August 18

単位を表示する

Time to complete
8hr18min

減少のアイコンを表示する

減少のアイコンを表示する場合は、Stat.Icontypedecreaseを設定します。

Total Page Views
1,993,818
21% more than last month

Props

アクセシビリティ

現在、v2の移行に伴い、このセクションは更新中です。