Bklit UI vs Recharts

Recharts is the most widely used React chart library, and the charts in shadcn/ui are built on it. Bklit UI takes the same composable, SVG-based approach but ships the source into your project, adds motion and interaction by default, and measures itself against Recharts in a live, open benchmark.

At a glance

How Bklit UI and Recharts differ, feature by feature.

FeatureBklit UIRecharts
How you install itshadcn CLI copies the source into your projectnpm package (recharts)
RenderingSVG, with d3 scales and shapesSVG, with d3 scales and shapes
APIComposable components (<LineChart>, <Line>, <XAxis>)Composable components (<LineChart>, <Line>, <XAxis>)
StylingTailwind CSS and CSS variables, light and dark modeProps on each component; CSS for some elements
AnimationBuilt in with Motion: draw-in, morphs, springy tooltipsBuilt-in enter and update animations
Bundle (gzip, minimal line chart)82.0 KB105.4 KB
React NativeYes: 12 chart types for Expo (beta)No
Visual editorYes: design visually in Studio, then copy the codeNo
LicenseMITMIT

Bundle sizes are measured at build time for a minimal line chart (minified, React external). For mount, update and hover timings, run the live benchmark in your own browser.

Which should you choose?

Both are good libraries. Pick the one that fits how you build.

Choose Bklit UI if

  • You use shadcn/ui and want charts that match it, with code you can open and change.
  • You want polished motion and interaction (tooltips, scrubbing, range selection) without building it yourself.
  • You need the same chart API on the web and in a React Native app.

Choose Recharts if

  • You want a dependency you update from npm rather than code you own.
  • You rely on a Recharts chart type Bklit doesn't have, such as a treemap.
  • Your team already knows Recharts well and the charts you have work.

The same chart in both

A two-series line chart with a grid, an x axis and a tooltip.

Bklit UI
import {  ChartTooltip,  Grid,  Line,  LineChart,  XAxis,} from "@bklitui/ui/charts";const data = [  { date: new Date("2026-01-01"), revenue: 12000, costs: 8500 },  { date: new Date("2026-01-02"), revenue: 13500, costs: 9200 },  { date: new Date("2026-01-03"), revenue: 11000, costs: 7800 },];export function RevenueChart() {  return (    <LineChart data={data}>      <Grid horizontal />      <Line dataKey="revenue" />      <Line dataKey="costs" stroke="var(--chart-line-secondary)" />      <XAxis />      <ChartTooltip />    </LineChart>  );}
Recharts
import {  CartesianGrid,  Line,  LineChart,  ResponsiveContainer,  Tooltip,  XAxis,} from "recharts";const data = [  { date: "Jan 1", revenue: 12000, costs: 8500 },  { date: "Jan 2", revenue: 13500, costs: 9200 },  { date: "Jan 3", revenue: 11000, costs: 7800 },];export function RevenueChart() {  return (    <ResponsiveContainer width="100%" height={300}>      <LineChart data={data}>        <CartesianGrid vertical={false} />        <Line dataKey="revenue" stroke="#2563eb" dot={false} />        <Line dataKey="costs" stroke="#a855f7" dot={false} />        <XAxis dataKey="date" />        <Tooltip />      </LineChart>    </ResponsiveContainer>  );}

Questions

Is Bklit UI a drop-in replacement for Recharts?
Not quite, but it's close. Both use composable components with the same names (LineChart, Line, XAxis), so most charts move over in a few minutes. The main differences are dates on the x axis and styling with CSS variables. The Recharts migration guide covers each step.
Is Bklit UI faster than Recharts?
Run the live benchmark on your own machine: it times mount, update and hover for both libraries on the same data, and reports DOM size and bundle size.
shadcn/ui charts use Recharts. Why use Bklit UI?
Bklit UI is a shadcn/ui registry too, so charts install the same way and match the same theme. It adds more chart types, built-in motion, and React Native support.

Try Bklit UI in your app

Add a chart with one command: npx shadcn@latest add @bklit/line-chart