Line chart

Line chart: A multi-series line chart with a gliding crosshair, legend toggles, and paths that morph between ranges. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Line chart

npx motion-ui-skill add line-chart

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Source files

Line chart

A multi-series line chart with a gliding crosshair, legend toggles, and paths that morph between ranges.

Install

npx motion-ui-skill add line-chart

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Usage

"use client";

import { LineChart as LineChart } from "@/components/blocks/line-chart";

export function Example() {
  return (
    <div className="p-6">
      <LineChart />
    </div>
  );
}

Browse this category