ComponentsChat
Chat
Combine messages, a followable stream, and a prompt composer.
Project assistant
Setup
Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.
Usage
| Usage | Send a prompt to stream a local sample response. Scroll away from the bottom to read earlier messages, then use Jump to latest to resume following. |
|---|---|
| Integration | Listen for ilui:ai-prompt and call detail.respondWith during the event with text, a promise, or an async iterable of text chunks. Send detail.prompt and detail.files to your endpoint. Pass detail.signal to fetch so Stop can abort the request. Without a handler, the demo plays a sample reply. |