Sparkline
Compact inline price marks for watchlists, token tables, and portfolio rows.
Line
@spectrumui/sparkline-chart
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
filled
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
Watchlist
SOL
Solana
$150.40
+17.13%
ETH
Ethereum
$3,846.00
+12.46%
JUP
Jupiter
$0.84
-6.21%
AAPL
Apple
$230.20
+7.47%
NVDA
NVIDIA
$158.40
+34.01%
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
Manual installation
Prefer to copy by hand? Open the Code tab on any example above and switch to the file you need — every source file is there, not just the demo. Drop them in your project like this:
chart-kit.tsxcomponents/spectrumui/charts/chart-kit.tsxsparkline-chart.tsxcomponents/spectrumui/charts/sparkline-chart.tsx
Then install its dependencies: npm i recharts framer-motion
Usage
import { Sparkline } from '@/components/spectrumui/charts/sparkline-chart';
<Sparkline data={series} filled />framed={false}drops the frame so it sits inline in a table row.