f0rextasy

Prompt History Drawer

AI chats

About

A slide-over drawer that lists previously saved AI prompts with a restore action per item and a clear-all action, triggered by a labeled button showing the item count.

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

Code

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

Usage.tsx

"use client";

import PromptHistoryDrawer from "@/components/ui/prompt-history-drawer";

export default function PromptHistoryDrawerDemo() {
  return (
    <div className="flex min-h-[320px] w-full items-center justify-center bg-background p-10">
      <PromptHistoryDrawer
        onRestore={(item) => console.log("restore", item)}
        onClear={() => console.log("clear history")}
      />
    </div>
  );
}

More by f0rextasy

View all
  • Newsletter Signup Card

    Newsletter Signup Card

    19
  • Board Checklist

    Board Checklist

    15
  • Stamp Seal

    Stamp Seal

    15
  • Network Graph

    Network Graph

    14
  • Navbar

    Navbar

    12
  • Running Order Timeline

    Running Order Timeline

    11
  • Milestone Chart

    Milestone Chart

    10
  • Empty State Card

    Empty State Card

    7

More in AI chats

View all
  • AI Actions

    AI Actions

    352
  • Aquarium Prompt

    Aquarium Prompt

    115
  • Research Report

    Research Report

    7
  • Agent Chat

    Agent Chat

    21
  • Message With Header And Delivery Status

    Message With Header And Delivery Status

    62
  • Tool Web Fetch

    Tool Web Fetch

    4
  • Color Picker

    Color Picker

    204
  • Suggestions

    Suggestions

    40