Skip to main content
ALEXY LINK

Card 03

A compact analytics card for KPI values, trend context, comparison data, and lightweight visual reporting.

Requirements

HTML, CSS, JavaScript

Dependencies

None

Usage

Copy index.html, styles.css and script.js into your project.

Typography: Inter, with a system sans-serif fallback.

About Card 03

Card 03 is a card component in the Card Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated September 22, 2026.

  • card
  • metric card
  • cards
  • analytics
  • kpi

What the code includes

HTML + CSS + JavaScript

3 files: index.html, styles.css, script.js

  • Behavior is handled in script.js.
  • HTML elements used: button, svg.
  • Includes a prefers-reduced-motion rule for its animation.

React + TypeScript + Tailwind CSS

3 files: Card03.jsx, Card03.types.ts, Card03.tailwind.css

  • Configurable through 10 props: label, value, formatValue, valuePrefix, trendValue, trendDirection, comparisonLabel, sparklinePoints, secondaryStat, className.
  • Uses React hooks: useEffect, useRef, useState.
  • HTML elements used: button, svg.
  • Includes a prefers-reduced-motion rule for its animation.
View all Card Components (10)