f0rextasy

Prompt History

AI chats

About

A small card listing recent AI prompts with a timestamp, letting the user reuse or remove each past prompt.

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

Code

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

Usage.tsx

import { PromptHistory } from "@/components/ui/prompt-history";

export default function PromptHistoryDemo() {
  return (
    <div className="flex w-full items-center justify-center bg-background p-8">
      <PromptHistory
        items={[
          { id: "p1", prompt: "Draft VIP welcome mail", time: "2h" },
          { id: "p2", prompt: "Summarize gate scans", time: "5h" },
          { id: "p3", prompt: "Generate release notes", time: "1d" },
        ]}
        onReuse={(prompt) => console.log("reuse prompt:", prompt)}
      />
    </div>
  );
}

More by f0rextasy

View all
  • Newsletter Signup Card

    Newsletter Signup Card

    17
  • Board Checklist

    Board Checklist

    15
  • Stamp Seal

    Stamp Seal

    13
  • Network Graph

    Network Graph

    13
  • Navbar

    Navbar

    11
  • Running Order Timeline

    Running Order Timeline

    9
  • Milestone Chart

    Milestone Chart

    9
  • Empty State Card

    Empty State Card

    6

More in AI chats

View all
  • AI Actions

    AI Actions

    350
  • Agent Chat

    Agent Chat

    19
  • Aquarium Prompt

    Aquarium Prompt

    104
  • Message With Header And Delivery Status

    Message With Header And Delivery Status

    59
  • Color Picker

    Color Picker

    197
  • System Notice

    System Notice

  • Illos Knowledge Sources

    Illos Knowledge Sources

    52
  • Chat Bubble

    Chat Bubble

    204