Comparison table

Comparison table: An us versus them table with a sticky header, a highlighted column, and a stacked phone view. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Comparison table

npx motion-ui-skill add comparison-table

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

Dependencies

  • clsx
  • lucide-react
  • motion
  • react
  • tailwind-merge

Source files

Comparison table

An us versus them table with a sticky header, a highlighted column, and a stacked phone view.

Install

npx motion-ui-skill add comparison-table

Dependencies

  • clsx
  • lucide-react
  • motion
  • react
  • tailwind-merge

Usage

"use client";

import { ComparisonTable as ComparisonTable } from "@/components/blocks/comparison-table";

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

Browse this category