Stats Card

Stats cards are used to display key statistics and data points in a clear and concise manner, often found in dashboards.

Props

PropTypeDefaultDescription
iconReactNode-Optional icon component to display in the card.
titlestring-The title or label for the statistic.
valuestring-The main statistical value to display.
changestring-The change value (e.g., "+12.2%").
changeType'increase' | 'decrease''increase'Determines the color of the change text.

Examples

Card Variations

Examples showing different configurations of the Stats Card.

Total Subscribers

71,897

+12.2%

Avg. Click Rate

24.57%

-3.2%

<>
  <StatsCard 
    icon={UsersIcon}
    title="Total Subscribers" 
    value="71,897" 
    change="+12.2%" 
    changeType="increase" 
  />
  <StatsCard
    title="Avg. Click Rate"
    value="24.57%"
    change="-3.2%"
    changeType="decrease"
  />
</>