Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ephraimduncan/blocks/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Stats blocks provide powerful ways to display metrics, KPIs, and statistical data. From simple metric cards to complex usage dashboards with charts and progress indicators, these components help you create compelling data visualizations.Available Blocks
Stats with Trending
Metric cards with trend indicators showing increase or decrease
Stats with Borders
Bordered metric cards for clear visual separation
Stats with Card Layout
Elevated card-style metric displays
Stats with Badges
Metrics with badge indicators for status or categories
Stats with Links
Clickable metric cards that navigate to detailed views
Stats with Status
Metrics with status indicators (success, warning, error)
Stats with Circular Progress
Circular progress indicators for percentage-based metrics
Stats with Circular Progress and Links
Clickable circular progress metrics
Stats with Progress
Linear progress bars for goal tracking
Stats with Area Chart
Metrics with mini area charts showing trends
Stats Dashboard with Progress Bars
Comprehensive dashboard with multiple progress-based metrics
Stats Usage Dashboard
Full usage dashboard with multiple metric types and visualizations
Stats with Segmented Progress
Progress bars with multiple segments for breakdown visualization
Stats with Usage Breakdown
Detailed usage metrics with category breakdowns
Stats with Value Breakdown
Value distribution across different categories or segments
Metric Display Patterns
Simple Metrics
Display key numbers with optional trend indicators. Best for high-level KPIs.Progress-Based
Show progress toward goals using progress bars or circular indicators.Chart-Enhanced
Combine numbers with mini charts (sparklines, area charts) for context.Segmented
Break down metrics into multiple categories or time periods.Usage Dashboards
Comprehensive views combining multiple metric types and visualizations.Use Cases
Business Dashboards
Business Dashboards
Display KPIs like revenue, user growth, conversion rates, and other business metrics with trend indicators.
Analytics Platforms
Analytics Platforms
Show website or app analytics including page views, sessions, bounce rate, and user engagement metrics.
Resource Monitoring
Resource Monitoring
Track resource usage like storage, bandwidth, API calls, or compute resources with progress bars.
Goal Tracking
Goal Tracking
Visualize progress toward targets using circular or linear progress indicators.
SaaS Metrics
SaaS Metrics
Monitor subscription metrics, user activity, feature adoption, and usage limits.
Implementation Example
Progress Indicators
Implement progress-based metrics:When displaying usage metrics, consider adding warning states when users approach their limits (e.g., >80% usage). This helps prevent unexpected service interruptions.
Best Practices
Data Visualization
- Clear Labels: Use descriptive, concise metric names
- Consistent Formatting: Format numbers consistently (currency, percentages, etc.)
- Appropriate Precision: Don’t show unnecessary decimal places
- Context: Provide comparison periods or benchmarks
- Color Coding: Use color meaningfully (green for positive, red for negative)
- Real-time Updates: Update metrics at appropriate intervals
Trend Indicators
- Direction: Use arrows or icons to show increase/decrease
- Magnitude: Show percentage or absolute change
- Time Context: Specify the comparison period
- Neutral Trends: Some changes aren’t positive or negative
- Thresholds: Consider what constitutes significant change
Layout
- Grid Organization: Use consistent grid layouts
- Visual Hierarchy: Prioritize most important metrics
- Responsive Design: Ensure metrics are readable on all devices
- Loading States: Show skeletons while data loads
- Empty States: Handle cases where data isn’t available
Chart Integration
Add mini charts to metrics:Formatting Numbers
Format metrics appropriately:Segmented Progress
Show breakdown by categories:Status Indicators
| Status | Color | Use Case |
|---|---|---|
| Success | Green | Metrics meeting targets |
| Warning | Yellow/Orange | Approaching limits |
| Error | Red | Exceeded limits or critical issues |
| Info | Blue | Neutral information |
| Default | Gray | Normal state |
Real-time Updates
Implement live metric updates:Accessibility
- Use semantic HTML for structure
- Provide text alternatives for visual indicators
- Ensure sufficient color contrast
- Don’t rely solely on color to convey information
- Make interactive stats keyboard accessible
- Announce dynamic updates to screen readers