Isaiah

Prompt Composer

AI chats 1

About

A chat message composer with an auto-growing textarea that accepts file attachments by button, paste or drag-and-drop, opens a slash-command menu, and swaps the send button for a stop button while a reply streams.

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

Code

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

Usage.tsx

"use client";

import {
  PromptComposer,
  SAMPLE_COMMANDS,
} from "@/components/ui/prompt-composer";

export default function PromptComposerDemo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-[#111111] p-6">
      <PromptComposer
        commands={SAMPLE_COMMANDS}
        placeholder="Ask anything. Type / for commands"
        onSubmit={(submission) => console.log(submission)}
      />
    </div>
  );
}

Dependencies

More by Isaiah

View all
  • Agent Plan

    Agent Plan

    2.3K
  • Voice Powered Orb

    Voice Powered Orb

    1.6K
  • Video Scroll Hero

    Video Scroll Hero

    1.5K
  • Reveal Text

    Reveal Text

    1.1K
  • Portfolio Gallery

    Portfolio Gallery

    987
  • Leads Data Table

    Leads Data Table

    973
  • Message Dock

    Message Dock

    863
  • Ruler Carousel

    Ruler Carousel

    670

More in AI chats

View all
  • AI Actions

    AI Actions

    355
  • AI Suggestions

    AI Suggestions

    21
  • AI Artifact

    AI Artifact

    14
  • Agent Chat

    Agent Chat

    21
  • AI Orb

    AI Orb

    200
  • Aquarium Prompt

    Aquarium Prompt

    129
  • AI Response

    AI Response

    16
  • Message With Header And Delivery Status

    Message With Header And Delivery Status

    64