mmrahmanbappi

Basic Prompt Box

AI chats

About

A clean chat-style prompt textarea that auto-grows, enables its send button only when there's text, submits on Enter (Shift+Enter for a new line), and appends sent messages to a log above it. Ported to React from MM Rahman Bappi's 100 Free AI UI Components (MIT).

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

Code

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

Usage.tsx

import BasicPromptBox from "@/components/ui/basic-prompt-box";

export default function BasicPromptBoxDemo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-[#f7f7f8] p-6">
      <BasicPromptBox placeholder="Ask anything" />
    </div>
  );
}

More by mmrahmanbappi

View all
  • Web Search Indicator

    Web Search Indicator

    15
  • Prompt with Model Picker

    Prompt with Model Picker

    2
  • Send Shortcut Prompt

    Send Shortcut Prompt

  • Answer Versions

    Answer Versions

  • Thumbs Feedback

    Thumbs Feedback

  • Was This Helpful Bar

    Was This Helpful Bar

  • Typing Dots

    Typing Dots

  • Confidence Badge

    Confidence Badge

More in AI chats

View all
  • AI Actions

    AI Actions

    319
  • Color Picker

    Color Picker

    81
  • Agent Chat

    Agent Chat

    17
  • Message Thread

    Message Thread

    35
  • System Message

    System Message

    54
  • Suggestions

    Suggestions

    28
  • Message With Header And Delivery Status

    Message With Header And Delivery Status

    38
  • Modal Card

    Modal Card

    101