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

    23
  • Prompt with Model Picker

    Prompt with Model Picker

    4
  • Thumbs Down with Reasons

    Thumbs Down with Reasons

  • Advanced Parameters Panel

    Advanced Parameters Panel

  • Code Block with Copy Button

    Code Block with Copy Button

  • Compare Answers

    Compare Answers

  • Full Chat Window

    Full Chat Window

  • Send Shortcut Prompt

    Send Shortcut Prompt

More in AI chats

View all
  • AI Actions

    AI Actions

    351
  • Aquarium Prompt

    Aquarium Prompt

    113
  • Agent Chat

    Agent Chat

    21
  • Message With Header And Delivery Status

    Message With Header And Delivery Status

    60
  • Research Report

    Research Report

    7
  • Tool Web Fetch

    Tool Web Fetch

    4
  • Color Picker

    Color Picker

    201
  • Suggestions

    Suggestions

    40