vercel / vercel/ai-elements

Add MessageEditor component

Open
#183 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
2.4k
Forks
283
Avg merge
32m
Merged PRs (30d)
1

Description

It would be great if AI Elements could also expose a MessageEditor component that would allow users to edit messages with the same / similar interface of our existing <PromptInput /> component so that one can e.g., delete file attachments or other context attachments from a previous message before sending it again.

Here is a reference to how a simple version (that doesn't match PromptInput) looks like in Chat SDK:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing PromptInput component and comparing its interface with the referenced Chat SDK implementation at components/message-editor.tsx. Add a MessageEditor that follows the PromptInput-style interface and lets users remove file or context attachments before resending; done means the component is exposed and supports that editing flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.