ComponentsPrompt Input

Prompt Input

Compose a prompt with staged attachments and keyboard submission.

Example

    Setup

    Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.

    Usage

    UsageEnter a prompt, add files if needed, and press Send or Control or Command plus Enter. Each attached file can be removed before submitting.
    IntegrationThe 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.