Statistic
On this page
Overview
A statistic showcases a data point or quick fact visually.
Elements must include a statistic slot and body text.
Icons, titles, and CTAs should be consistent when grouped.
Adapts color for WCAG contrast in light and dark contexts.
Only the CTA receives Tab focus; screen readers read DOM order.
Edit element properties
import '@rhds/elements/rh-stat/rh-stat.js';
<rh-stat>
<span slot="statistic">Statistic Placeholder</span>
<span>Description Placeholder</span>
</rh-stat>
import { Stat } from "@rhds/elements/react/rh-stat/rh-stat.js";
// NOTE: React 19+ does not require these wrapper imports.
// You can use the custom elements directly as-is.
export const Demo = () => (
<Stat>
<span slot="statistic">Statistic Placeholder</span>
<span>Description Placeholder</span>
</Stat>
);
The icon name to display above the statistic.
When set, the component dynamically imports rh-icon
and renders it using the specified icon set.
The icon set from which to load the icon.
Only applies when the icon attribute is set.
Controls the visual ordering of the title and
statistic slots. When set to statistic, the data
value appears above the title text.
The size variant of the statistic. The large size
increases the data text font size and icon dimensions.
Whether the statistic renders in a mobile layout with reduced font sizes. Managed internally via ScreenSizeController but can be set explicitly.
Status
- Figma library:
-
Ready - RH Elements:
-
Ready - RH Shared Libs:
-
Ready
When to use
- When you need to add visual emphasis to a statistic
- When you need to pair a data point with supporting text to add more context
- When you need to display several statistics together in a group
Status checklist
| Property | Status | Meaning |
|---|---|---|
| Figma library |
|
Component is available in the Figma library |
| RH Elements |
|
Component is available in RH Elements |
| RH Shared Libs |
|
Component is available in RH Shared Libs |
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.