Powerful and customizable React metric components built for modern applications and websites. These metric components are built using React Aria and styled with Tailwind CSS.
View 24 hours
2,000
Installation
You can add this metrics component using our CLI or manually:
npx untitledui@latest add metrics
Metrics examples
Below are examples and variations of this metrics component:
Views 24 hours
2,000
Views 24 hours
2,000
View 24 hours
2,000
View 24 hours
2,000
View 24 hours
2,000
View 24 hours
2,000
View 24 hours
2,000
View 24 hours
2,000
View 24 hours
2,000
View 24 hours
2,000
View 24 hours
2,000
View 24 hours
2,000
View 24 hours
2,000
View 24 hours
2,000
View 24 hours
2,000
View 24 hours
2,000
View 24 hours
2,000
API reference
MetricChangeIndicator
Import MetricChangeIndicator from @/components/application/metrics/metrics. Renders a <div> element.
MetricsChart01
Import MetricsChart01 from @/components/application/metrics/metrics. Renders a <div> element.
MetricsChart02
Import MetricsChart02 from @/components/application/metrics/metrics. Renders a <div> element.
MetricsChart03
Import MetricsChart03 from @/components/application/metrics/metrics. Renders a <div> element.
MetricsChart04
Import MetricsChart04 from @/components/application/metrics/metrics. Renders a <div> element.
MetricsIcon01
Import MetricsIcon01 from @/components/application/metrics/metrics. Renders a <div> element.
MetricsIcon02
Import MetricsIcon02 from @/components/application/metrics/metrics. Renders a <div> element.
MetricsIcon03
Import MetricsIcon03 from @/components/application/metrics/metrics. Renders a <div> element.
MetricsIcon04
Import MetricsIcon04 from @/components/application/metrics/metrics. Renders a <div> element.
MetricsSimple
Import MetricsSimple from @/components/application/metrics/metrics. Renders a <div> element.
FAQs
Please refer to our frequently asked questions page for more.
The metrics file exports nine cards: MetricsSimple, MetricsIcon01 through MetricsIcon04, and MetricsChart01 through MetricsChart04. The icon cards pair a FeaturedIcon with the value, and the chart cards embed a small Recharts area chart alongside it.
Pass the change as a string via change (for example "100%") and set the direction. MetricsSimple and MetricsChart01 use a trend prop, while MetricsIcon03, MetricsIcon04, MetricsChart02, MetricsChart03 and MetricsChart04 use changeTrend. Both accept "positive" or "negative", which switches the arrow icon and swaps the colors between the success and error tokens.
The exported MetricChangeIndicator supports three type values: "simple" (a plain up or down arrow), "trend" (a trend line icon), and "modern" (a diagonal arrow inside a bordered pill). The cards that expose the choice — MetricsSimple, MetricsChart03 and MetricsChart04 — take it as the type prop, and the chart cards default to "trend".
Every metric card accepts a footer prop that takes any React node. When it is provided, the card renders a divider and a right-aligned footer row — the examples on this page pass a <Button color="link-color" size="sm">. Omit footer or pass null to render the card without one.
Yes. MetricsChart01 accepts chartData as an array of { value: number; highlight?: boolean }, where highlight: true renders the emphasized dot on that point. MetricsChart03 and MetricsChart04 accept chartData as an array of { value: number }, plus chartColor, chartAreaFill and chartCurveType (a Recharts CurveType) for customizing the area itself.
MetricsIcon03, MetricsIcon04 and MetricsChart02 accept an icon prop that takes an icon component, such as one from @untitledui/icons. MetricsIcon01 and MetricsIcon02 use fixed icons, so edit the component file if you need to swap those.
Set actions={false}. That prop is available on MetricsIcon03, MetricsIcon04 and MetricsChart01; on the other cards the dots dropdown is always rendered, so remove the ActionsDropdown element in the component file to drop it. Every card also accepts className if you only need to restyle the container.