MediaView
An image, an audio clip, a video or a file from a request, with a line that names it and a download.
<MediaView src="/demos/receipt.svg" label="Image" detail="PNG, 1,024 × 768, 1.2 MB" filename="image-1.png" />import { MediaView } from "@logicplanes/kaeso-ui";Props
detailstringWhat the file is, after its name: its format, dimensions and size.
downloadstringThe address the download saves from, when it isn't the one shown or played, such as a blob: URL beside an image's data: URL.
filenamestringThe name the download saves under; without it the browser chooses one.
kind"file" | "image" | "audio" | "video" = imageWhat the file is: an image, audio, a video, or a file that can only be downloaded.
labelstringWhat the file is or shows, in words: the caption, the image's text alternative and the player's accessible name.
srcstringThe file's address: a data: URL for an image, a blob: URL for audio and video where the content security policy allows no other.