The earlier Recharts chart components, kept for existing installs.
These components are deprecated. They still work and stay in the registry for existing installs, but new code should use the TanStack charts. The props map closely; see Migrating from Recharts.
The unprefixed registry names now install the TanStack versions:
| Before | Now |
|---|---|
@preskok/chart (Recharts helpers) | @preskok/recharts-chart |
@preskok/area-chart → AreaChart | @preskok/recharts-area-chart → RechartsAreaChart |
@preskok/bar-chart → BarChart | @preskok/recharts-bar-chart → RechartsBarChart |
@preskok/line-chart → LineChart | @preskok/recharts-line-chart → RechartsLineChart |
@preskok/pie-chart → PieChart | @preskok/recharts-pie-chart → RechartsPieChart |
@preskok/experimental-*-chart | @preskok/*-chart |
Code already copied into your project is unaffected. Re-adding an unprefixed name brings in the TanStack version.
npx shadcn@latest add @preskok/recharts-area-chartnpx shadcn@latest add @preskok/recharts-bar-chartnpx shadcn@latest add @preskok/recharts-line-chartnpx shadcn@latest add @preskok/recharts-pie-chartnpx shadcn@latest add @preskok/recharts-chart