Open-source component shelf

Copy-ready components.

Preview the interaction, check the license, then copy the install command and working usage code.

Ready to use

Verified source and license. No account required.

Bklit UI

Area Chart

A composable React chart with gradient fills, axes, tooltips and hover interactions.

ReactTypeScriptTailwindMIT
Revenue$18,420Sample data
Sample chart data
DateRevenueCosts
Jan 1120008500
Jan 2135009200
Jan 3128008900
Jan 41620010100
Jan 5151009800
Jan 61760011200
Jan 71842011900

Install

npx shadcn@latest add @bklit/area-chart

Requires a React project with shadcn/ui configured.

Use

import {
  Area,
  AreaChart,
  ChartTooltip,
  Grid,
  XAxis,
} from "@/components/ui/area-chart";

const data = [
  { date: new Date("2025-01-01"), revenue: 12000, costs: 8500 },
  { date: new Date("2025-01-02"), revenue: 13500, costs: 9200 },
  { date: new Date("2025-01-03"), revenue: 12800, costs: 8900 },
];

export default function RevenueChart() {
  return (
    <AreaChart data={data}>
      <Grid horizontal />
      <Area dataKey="revenue" fill="var(--chart-line-primary)" />
      <Area dataKey="costs" fill="var(--chart-line-secondary)" />
      <XAxis />
      <ChartTooltip />
    </AreaChart>
  );
}
License checkedChart source is MIT licensed. Keep the included copyright and license notice.

What gets added here?

Only components with a clear reusable license and a reliable installation path. Proprietary builders and studio interfaces stay linked as references, not copied.