Attachments

The files sent with a prompt: images as thumbnails, other files by name, each with a remove button while it waits.

View source
  • receipt-northwind.svg
  • settings-screen.svg
  • invoice-2026-10.pdf
  • standup-notes.m4a
import { Attachments } from "@logicplanes/kaeso-ui/playground";

Props

  • align
    "start" | "end" = start

    Where the row lines up: the start (in the composer) or the end (above a sent prompt).

  • aria-label
    string

    The list's accessible name ("Attachments" by default).

  • items
    readonly Attachment[]

    The files: an id, the name, the media type and, for an image, a blob: or data: 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.