Mini SVG line plotting any number array. Tone sets the stroke color.
Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.
import { Card2 } from "@/components/beste/piece/card2";
<Card2
label="Revenue · 30d"
value="$48.2k"
data={[
12,
18,
14,
22,
20,
28,
24,
32,
30,
38,
36,
44
]}
tone="success"
/>