DS0
Components

StatCard

A formatted numeric display with label, value, and optional trend indicator for dashboards.

Overview

StatCard displays a key metric with a label, large formatted value, and optional trend indicator (up/down percentage). Ideal for dashboard headers and analytics views.

Revenue

$45,231

12.5%

vs last month

Users

2,350

8.2%

vs last month

Bounce Rate

24.3%

3.1%

vs last month

Usage

<StatCard
  label="Total Revenue"
  value="$48,290"
  trend={{ value: 12.5, direction: 'up' }}
  icon={<DollarSign />}
/>

API Reference

PropTypeDefaultDescription
labelstringMetric label
valuestring | numberMetric value
trend{ value: number, direction: 'up' | 'down' }Trend indicator
iconReactNodeDecorative icon
descriptionstringAdditional context
ComponentWhen to Use Instead
CardGeneric content container
SparklineInline trend chart
ChartFull data visualization

On this page