Stat

Stat is used to display numbers or data within a box.

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

Usage

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

Change Size

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

Change Color Scheme

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

Center Content

To center the content, set centerContent to true.

Downloads
18K
From August 1 to August 18

Display Unit

Time to complete
8hr18min

Display Decrease Icon

To display a decrease icon, set the type of Stat.Icon to decrease.

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

Props

Accessibility

ARIA Roles and Attributes

ComponentRole and AttributesUsage
Stat.Iconaria-labelSet to "Increased by" if type is set to "increase", and to "Decreased by" if type is set to "decrease".

Similar Components

NativeTable

NativeTable is a component for efficiently organizing and displaying data.

Table

Table is a table component equipped with column sorting, row selection, and click event features.

AreaChart

AreaChart is a component for drawing area charts to compare multiple sets of data.

Badge

Badge is a component that emphasizes the status of an item to make it immediately recognizable.

BarChart

BarChart is a component for drawing bar charts to compare multiple sets of data.

Card

Card is a component that groups and displays related information. By default, it renders a article element.

ComposedChart

ComposedChart is a component for drawing composed charts to compare multiple sets of data.

DataList

DataList is used to display a list of data items.

Uses Components & Hooks