ComponentsPrompt Input
Prompt Input
Compose a prompt with staged attachments and keyboard submission.
Setup
Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.
Usage
| Usage | Enter a prompt, add files if needed, and press Send or Control or Command plus Enter. Each attached file can be removed before submitting. |
|---|---|
| Integration | The bubbling ilui:ai-prompt event exposes detail.prompt and detail.files. Prevent the event to keep the draft while your app handles submission. Attachments stay in the browser until the app uploads them. |