MEDIA
ImageThumb
Aspect-locked thumbnail with a placeholder fallback when src is null.
PREVIEW
No image
SOURCE
import { ImageThumb } from '@objectifthunes/whiteboard'
<ImageThumb src={null} alt="No image" placeholder="No image" />
<ImageThumb src={url} alt="…" fit="contain" />
<ImageThumb src={url} alt="…" fit="cover" />NOTES
Aspect-ratio-locked thumbnail. Falls back to the placeholder when src is null or when the image fails to load (the onImageError callback fires too).
fit picks object-fit: contain (default) or cover; size caps the max-width (sm, md, or fluid).