The best shadcn chart components in 2027
The shadcn/ui model changed how React teams think about components: you copy the source into your app and own it, instead of installing a package you can't touch. Charts work the same way now. Here are the main options that install with the shadcn CLI, and when to choose each.
How shadcn chart installs work
The shadcn CLI installs from any compatible registry. You can install by URL, or add a namespace once in components.json and install by name:
{
"registries": {
"@chartslibraryui": "https://chartslibraryui.com/r/{name}.json"
}
}npx shadcn@latest add @chartslibraryui/line-chartThe same registries are available to coding agents through the shadcn MCP server (npx shadcn@latest mcp init --client claude).
1. shadcn/ui charts
The official chart component and examples. They're Recharts charts with shadcn styling, so you keep Recharts as a dependency and adapt each example to your data.
Choose it when you want charts that match the rest of shadcn/ui and your needs are simple: area, bar, line, pie and radar.
2. Tremor
A free, open-source dashboard kit built on Tailwind CSS and Recharts, with charts, KPI cards and tables that match each other.
Choose it when you want a complete dashboard UI kit and your app is Tailwind-first.
3. ChartslibraryUI
47 chart components that install through the shadcn CLI, with no chart library underneath. Each chart is one TypeScript file on a small shared core. 26 are free (MIT); 21 finance and analytical charts and dashboard blocks are Pro.
Choose it when you're building finance, SaaS or analytics dashboards and need waterfalls, variance, forecasts, cohorts or funnels, or when you need missing data, partial periods and bad input handled consistently.
Comparison
| shadcn/ui charts | Tremor | ChartslibraryUI | |
|---|---|---|---|
| Underneath | Recharts | Recharts + Tailwind | React only |
| Price | Free | Free | 26 free, Pro one-time |
| Finance charts | No | Basic | Yes |
| Handles gaps, forecasts, bad input | Manually | Manually | Built in |
| Styling | shadcn CSS variables | Tailwind | CSS variables |
Can I mix them?
Yes. All three are just files in your repo. Many teams use shadcn/ui for the app shell, and add a specialised chart set where the dashboard needs it.