MediaResponse
What an image, speech, sound or video model made, in a response's place: images in a grid, audio and video in players, each with Download.
import { MediaResponse } from "@logicplanes/kaeso-ui/playground";Props
aria-labelstringThe response's accessible name ("GPT Image 2 response" in a comparison). Defaults to "Response" in the provider's language.
errorstringWhy it failed, shown under "No response" with status "error".
expectednumber = 1How many images to hold room for while they are made.
footerReactNodeUnder the response, after Retry: its metrics.
itemsreadonly MediaItem[] = []The files: where to show or play each from (
blob:,data:or a same-origin link), the file name it downloads under, and a label in the reader's language that Download and screen readers say.kind"image" | "audio" | "video" = imageWhat the model makes: images, audio or a video.
onCancel(() => void)Cancels a running video job: a Cancel button under its progress.
onRetry(() => void)Sends the turn again: a Retry button after a stop or a failure, and a quiet Retry circle under a finished response.
progressnumber | nullA video job's progress from 0 to 100, when its provider says; the bar pulses quietly while it doesn't.
statusMediaStatus = doneWhere it stands: waiting, running, done, stopped or failed.