theshanelevine

Diff Table

AI chats

About

An animated data table that plays an AI-proposed edit sweeping through tabular rows — removed rows tint red and strike through while a newly added row slides in green, resting on the completed diff.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Diff Table to your project and fits it to your theme.

Code

How Diff Table is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import DiffTable from "@/components/ui/diff-table";

export default function DiffTableDemo() {
  return (
    <div className="flex min-h-[340px] w-full items-center justify-center bg-canvas p-8">
      <DiffTable />
    </div>
  );
}

More by theshanelevine

View all
  • Loading State

    Loading State

    1K
  • Streaming Text

    Streaming Text

    555
  • Thinking

    Thinking

    183
  • Records Table

    Records Table

    139
  • Approval Card

    Approval Card

    92
  • Chat Panel

    Chat Panel

    46
  • Recommendation Card

    Recommendation Card

    5
  • Code Block

    Code Block

    3

More in AI chats

View all
  • AI Actions

    AI Actions

    372
  • Aquarium Prompt

    Aquarium Prompt

    205
  • AI Response

    AI Response

    16
  • Agent Chat

    Agent Chat

    21
  • AI Suggestions

    AI Suggestions

    25
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    29
  • Message Parts

    Message Parts

    6
  • Message Thread

    Message Thread

    73