mmrahmanbappi

Send Shortcut Prompt

AI chats

About

A chat-style message composer with an auto-growing textarea and a toggle that lets users choose whether Enter sends the message (Shift+Enter for a new line) or Cmd/Ctrl+Enter sends it instead, with a keyboard hint that updates to match. Ported from the original HTML/CSS/JS by MM Rahman Bappi (100 Free AI UI Components, MIT licensed).

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

Code

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

Usage.tsx

import SendShortcutPrompt from "@/components/ui/send-shortcut-prompt";

export default function Demo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-[var(--background)] p-6">
      <SendShortcutPrompt />
    </div>
  );
}

More by mmrahmanbappi

View all
  • Web Search Indicator

    Web Search Indicator

    23
  • Prompt with Model Picker

    Prompt with Model Picker

    5
  • Audio Answer Player

    Audio Answer Player

    2
  • Editable Task Plan

    Editable Task Plan

    1
  • Status Spinner

    Status Spinner

    1
  • Thumbs Down with Reasons

    Thumbs Down with Reasons

  • Advanced Parameters Panel

    Advanced Parameters Panel

  • Code Block with Copy Button

    Code Block with Copy Button

More in AI chats

View all
  • AI Actions

    AI Actions

    361
  • Aquarium Prompt

    Aquarium Prompt

    158
  • Color Picker

    Color Picker

    224
  • AI Task List

    AI Task List

    198
  • Interactive LLM Token & Context Window Visualizer

    Interactive LLM Token & Context Window Visualizer

    2
  • AI Orb

    AI Orb

    211
  • Message

    Message

    53
  • Commit

    Commit

    43