Edu Calvo

AI Message

AI chats 83

About

Chat message row for user and assistant turns, with copy, retry and vote actions that reveal on hover instead of crowding the bubble. Respects prefers-reduced-motion.

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

Code

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

Usage.tsx

"use client";

import Component from "@/components/ui/ai-message";

export default function DemoOne() {
  return (
    <div className="flex min-h-[440px] w-full items-center justify-center bg-background p-10">
      <div className="w-full max-w-lg space-y-4">
        <Component from="user" timestamp="09:24">
          Why does my dialog feel sluggish when it opens?
        </Component>

        <Component
          copyText="Your transition is 600ms with an easeInOut curve."
          from="assistant"
          onRetry={() => undefined}
          onVote={() => undefined}
          timestamp="09:24"
        >
          Your transition is 600ms with an ease-in-out curve, so the first third
          of the motion is almost stationary. Drop it to 0.25s with an ease-out
          curve and it will read as instant without losing the animation.
        </Component>
      </div>
    </div>
  );
}

Dependencies

More by Edu Calvo

View all
  • Scrollable Card Stack

    Scrollable Card Stack

    262
  • AI Task List

    AI Task List

    180
  • Pixel Flow Field

    Pixel Flow Field

    177
  • Siri Orb

    Siri Orb

    172
  • Cursor Follow

    Cursor Follow

    162
  • Gravity Stars

    Gravity Stars

    146
  • Agent Avatar

    Agent Avatar

    144
  • Coverflow Carousel

    Coverflow Carousel

    126

More in AI chats

View all
  • AI Actions

    AI Actions

    336
  • Aquarium Prompt

    Aquarium Prompt

    17
  • System Message

    System Message

    72
  • Message With Header And Delivery Status

    Message With Header And Delivery Status

    50
  • Attachments

    Attachments

    31
  • Color Picker

    Color Picker

    156
  • Commit

    Commit

    27
  • Illos Knowledge Sources

    Illos Knowledge Sources

    27