Card Image

PropertyTypeDescription
alt
stringUser-readable description of the image being displayed.
src
stringURL of the image resource.
aspect?
AspectRatio
One of:
Aspect16x9, Aspect1x1, Aspect21x9, Aspect3x4, Aspect4x3, BoxArt
children?
React.ReactNode
className?
string
onError?
React.EventHandlerCallback that fires when image fails to load.
onLoad?
React.EventHandlerCallback that fires when image loads.
overflow?
boolean
refHandler?
size?
CardImageSize
One of:
Default, Size16, Size2, Size24, Size3, Size32, Size4, Size6, Size8
sizes?
The intended display size of the image at various breakpoints. Accepts an array of objects that contain a size, and optionally a mediaCondition.
srcSet?
CoreSrcSetA configuration object for responsive image display. Accepts an object with valid descriptors for keys and image urls for values.