Ga naar hoofdinhoud

CnImageWidget

Image widget with object-fit modes, optional link, and graceful error/placeholder state.

Part of the dashboard widget library (v2). Registered with the dashboard widget registry and consumed by MyDash/LaunchPad's widget grid. See the widget library overview and docs/architecture/cards-and-widgets.md.

Reference

Props

NameTypeRequiredDefaultDescription
content{url: string, alt: string, link: string, fit: string}\{\}Persisted widget content blob: {url, alt, link, fit}.
fit'cover'|'contain'|'fill'|'none'|undefinedundefinedOptional object-fit override; restricted to the four supported CSS values. An unknown value falls back to 'cover'.