ham7a311

Message Actions

AI chats

About

A hover-revealed action row under an AI chat reply with copy, regenerate (with version switcher), thumbs up/down feedback with a reason prompt, and share, each with its own micro-animated confirmation state.

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

Code

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

Usage.tsx

"use client";

import { MessageActions } from "@/components/ui/message-actions";

const V = [
  <>
    <p>
      The deck and the data mostly agree. The one real mismatch is{" "}
      <strong>slide 12</strong>: it shows 71% week-6 retention, but the March
      cohort in the CSV sits at 64%.
    </p>
    <p>
      Everything else — revenue, seats, expansion — matches to within a rounding
      error.
    </p>
  </>,
  <>
    <p>
      Short version: one number is off. Slide 12 says 71% week-6 retention; the
      CSV says 64% for March.
    </p>
    <p>
      I&rsquo;d update the slide or add a footnote explaining the cohort
      difference.
    </p>
  </>,
  <>
    <p>
      Slide 12 overstates retention (71% vs 64% in the data). Everything else
      checks out.
    </p>
  </>,
];

export default function MessageActionsDemo() {
  return (
    <div className="flex min-h-[320px] w-full items-center justify-center bg-[#f5f1e8] p-8">
      <MessageActions versions={V} theme="paper" />
    </div>
  );
}

More by ham7a311

View all
  • Wave Mesh

    Wave Mesh

    137
  • Route Globe

    Route Globe

    125
  • Glass Tiles

    Glass Tiles

    109
  • Glyph Swell

    Glyph Swell

    50
  • Orbit Ring Stats

    Orbit Ring Stats

    47
  • Ask Bar

    Ask Bar

    38
  • Glass Ribbons

    Glass Ribbons

    30
  • Intent Label

    Intent Label

    29

More in AI chats

View all
  • AI Actions

    AI Actions

    337
  • Aquarium Prompt

    Aquarium Prompt

    27
  • Attachments

    Attachments

    33
  • Message Thread

    Message Thread

    55
  • Commit

    Commit

    29
  • Agent Chat

    Agent Chat

    18
  • Color Picker

    Color Picker

    162
  • Chat Bubble

    Chat Bubble

    195