<article class="stat">
<span class="value">73</span>
<span class="label">Components</span>
</article>
Stats / Metrics
Numerical data display component using the stat class. Clean, accessible metric cards for dashboards and overview pages.
Default Stats
With Icon and Meta
↑ 12% from last month
This month
<article class="stat">
<span class="axicon render" data-name="Users"></span>
<span class="value">24,891</span>
<span class="label">Active Users</span>
<p>↑ 12% from last month</p>
</article>
Semantic Structure
| Element | Role | Use |
|---|---|---|
article.stat | Root | Container — use article for self-contained data |
span.value | Number | The main metric — large, prominent |
span.label | Label | What the number represents |
p | Context | Trend, timeframe, comparison |
span.axicon | Icon (optional) | Place before value for visual category |
Accessibility
- Wrap in a
<section aria-label="Key Metrics"> - Each
article.statis self-contained — screen readers treat it independently - Include trend info in the visible
stat-meta— don't use color alone - Consider
aria-labelon the value if the label follows:<span class="value" aria-label="24891 active users">
Features
- Semantic Structure - Built with native HTML5 elements for maximum reliability.
- Theme Aware - Automatically adapts to all 22 Axiom01 themes via OKLCH tokens.
- Fully Responsive - Scales perfectly from mobile to desktop screens.
- No JS Dependency - Core functionality relies on pure CSS for maximum performance.
- Customizable - Easily extendable via Axiom01's design tokens and modifiers.
Use Cases
The Stats component is designed for versatile implementation across modern web applications. Ideal scenarios include:
- Dashboards & Admin Panels - Structured data presentation and interface control.
- Content Management Systems - Organizing complex information hierarchies and media.
- E-Commerce Platforms - Enhancing product discovery and user workflows.
- Marketing Sites - Highlighting key product offerings cleanly and effectively.
- SaaS Applications - Delivering native-feeling, responsive app experiences.