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.

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