Description
Prompt Area is a React rich-text input for AI chat interfaces, offered as an npm package or as a shadcn registry component. It combines @mentions, /commands and #tags in one contentEditable textarea. Typing a trigger character turns a mention, command or tag into a structured chip, and you configure each trigger with its own dropdown and search. Markdown such as bold, italics, lists and auto-linked URLs renders as you type, and pasted content from tools like Word, Slack, Notion or Google Docs is converted to clean markdown. The component includes an undo and redo history, file and image attachments with thumbnails and loading states, and an action bar that pairs with the input for a complete chat layout. It supports dark mode and is designed for Next.js and React projects that use Tailwind CSS. The package has no runtime dependencies, which the site contrasts with editor frameworks such as ProseMirror, Slate and Lexical. Those frameworks suit full document editing, while Prompt Area is aimed at a lightweight chat input. You add it with a single shadcn command, and the source is kept in the just-marketing/prompt-area repository on GitHub.…
Highlights
- Trigger-based chips for @mentions, /commands and #tags
- Inline markdown and rich paste conversion
- Undo and redo history
- File and image attachments with thumbnails
- Action bar and chat layout components
Ratings & Reviews
No ratings yet
Be the first to rate prompt-area.
People also visit
prompt-area FAQ
What is Prompt Area?
A React rich-text input for AI chat, with mentions, commands, tags, inline markdown and attachments in one component.
How do I install it?
Use the shadcn registry command, pnpm dlx shadcn@latest add https://prompt-area.com/r/prompt-area.json, or install the pnpm add prompt-area npm package.
How do I add @mentions?
Configure a trigger with the @ character and dropdown mode. The same trigger system handles /commands and #tags.
Does it have dependencies?
The site describes it as zero-dependency, with no ProseMirror, Slate or Lexical needed.
Does it work with Next.js and Tailwind?
It is designed for Next.js and React projects that use Tailwind CSS, and it installs through the shadcn registry.
What happens when I paste formatted text?
Rich text from Word, Slack, Notion or Google Docs is converted to clean markdown.
Does it support dark mode?
Yes. The site lists dark mode as ready out of the box.
What are the best prompt-area alternatives?
Popular alternatives to prompt-area include fancy-area, rich-textarea and plate. See all prompt-area alternatives














