interface ThumbnailProps

Passed to Thumbnail by a card or the player, from the dump's rich content.

Properties

optional
src: string

The image's own URL, not proxied, since the fallbacks decide when to.

optional
alt: string
optional
className: string

Applies to the image only.

optional
loading: "lazy" | "eager"
sizes: number | string

The width the image is laid out at, as imageProps takes it. An image the API serves, the site's own or a proxied one, then loads no larger than that; another site's loads as that site sends it.

Shown when there's no src or it fails to load.

optional
placeholderClassName: string

Usage

import { type ThumbnailProps } from "src/components/shared/Thumbnail.tsx";