Media | CoverArt
CoverArt#
Description#
Component that displays the cover art of an album, radio station, or artist. If the image is unavailable or fails to load, it shows a fallback: a short text (initials, a letter) or a theme icon. Always rendered square; a landscape image is cropped with object-cover without distorting the row.
Props#
src(string | null) — Image URL. Default:null.alt(string) — Alternative text for accessibility. Default:''.fallbackIcon(string) — Theme icon name shown when there is no image or fallback text. Default:'audio-x-generic'.fallbackText(string) — Short text shown instead of the icon (initials, letter). Default:''.size('sm'|'md'|'lg'|'xl'|'fill') — Artwork size.filltakes the available width. Default:'fill'.shape('square'|'round') — Container shape.roundis the disc;squareuses the system radius. Default:'square'.
Emits#
error— Emitted when the image failed to load.
Usage#
| |
Notes#
- Changing
srcautomatically retries loading. - The fallback text scales with the box size; in
fillit uses the intermediate size.