Attachments
The files sent with a prompt: images as thumbnails, other files by name, each with a remove button while it waits.
- invoice-2026-10.pdf
- standup-notes.m4a
function Waiting() {
const [items, setItems] = useState(files);
return <Attachments items={items} onRemove={(id) => setItems((now) => now.filter((a) => a.id !== id))} />;
}import { Attachments } from "@logicplanes/kaeso-ui/playground";Props
align"start" | "end" = startWhere the row lines up: the start (in the composer) or the end (above a sent prompt).
aria-labelstringThe list's accessible name ("Attachments" by default).
itemsreadonly Attachment[]The files: an id, the name, the media type and, for an image, a
blob:ordata:URL to draw it from.onRemove((id: string) => void)Removes a file by its id: a remove button on each thumbnail and pill, named after the file.