# Send Shortcut Prompt

> 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).

- Author: [mmrahmanbappi](https://21st.dev/@mmrahmanbappi)
- Library: mmrahmanbappi
- License: MIT
- Tags: Prompt Input, Chat, Textarea, Keyboard Shortcut, Toggle
- Live preview: https://21st.dev/@mmrahmanbappi/components/send-shortcut-prompt

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/mmrahmanbappi/send-shortcut-prompt?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/prompt-input.md
