Back to components
ComponentTableFree

Sparkline Table React component

A product table with a tiny trend chart in every row: 30-day sparklines coloured by direction, hover for any day's value, revenue with share bars, week-over-week change pills and sortable columns.

About the Sparkline Table component

Sparkline Table adds a tiny trend chart to every row, so a list of products, pages or accounts shows not just how big each one is but which way it's heading. Sparklines turn green or red with the last week's change, and hovering one shows the value for any day.

Revenue gets a share bar, the week-over-week change gets a coloured pill, and every numeric column sorts with a click.

When to use it

Use it for top products, landing pages, campaigns, API endpoints, accounts or stocks: any ranked list where the trend matters as much as the total.

For one item's history, use a full line chart; sparklines are for comparing shapes across many rows.

Installation

Add the Sparkline Table component to your project with the shadcn CLI. It lands in components/sparkline-table.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/sparkline-table

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install clsx tailwind-merge

More Table components

Grouped Rows Table
Free
Heatmap Table
Free
Live Ticker Table
Free
Frozen Columns Table
Free
Virtualized Table
Free
Expandable Row Table
Free