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

    950
  • Streaming Text

    Streaming Text

    491
  • Thinking

    Thinking

    160
  • Records Table

    Records Table

    114
  • Approval Card

    Approval Card

    76
  • Chat Panel

    Chat Panel

    39
  • Recommendation Card

    Recommendation Card

    4
  • Filter Table

    Filter Table

    2

More in AI chats

View all
  • AI Actions

    AI Actions

    320
  • System Message

    System Message

    55
  • Message Thread

    Message Thread

    38
  • AI Task List

    AI Task List

    161
  • Chat Bubble

    Chat Bubble

    184
  • Color Picker

    Color Picker

    89
  • Code Block

    Code Block

    8
  • Message With Header And Delivery Status

    Message With Header And Delivery Status

    38