Image

The Image component can handle all images of the app. The component prevents the image from being reloaded if the src does not change. The context can be used for global src modification e.g.: thumbnails.

Props

NameTypeDefaultDescription
Componentelement type'div'The component used for the root node. Either a string to use a HTML element or a component.
widthinteger'100%'Image element width attribute
heightinteger'auto'Image element height attribute
ImageIconComponentelement typeImageIconThe component used for the svg icon node if the src property is missing. Either a string to use a HTML element or a component.
PaperComponentelement typePaperThe component used for the parent of the icon node. Either a string to use a HTML element or a component.
PaperComponentPropsobject{color:'paper1', size:'menu', ContentComponent: 'Modal'}Passing props to the PaperComponent
The ref is forwarded to the root element.

Example

function getSrc({src}) { return src+'/?1' }