About
A dark stat card lit by a blue glow that follows its chart marker, with a rolling headline figure, a delta chip, and pointer, touch and keyboard scrubbing.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Market Card to your project and fits it to your theme.
Code
How Market Card is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import * as React from "react";
import { MarketCard } from "@/components/ui/market-card";
/** The stat card with a live figure: hover or drag along the line, or focus it and use the arrow keys. */
export default function MarketCardDemo() {
const [i, setI] = React.useState(9);
return (
<main className="relative h-screen min-h-[340px] w-full overflow-hidden" style={{ backgroundColor: "#0c0c0c" }}>
<MarketCard index={i} onIndexChange={setI} format={(v) => "$" + +v.toFixed(1) + "B"} style={{ width: "100%", height: "100%" }} />
</main>
);
}








