Constructor
# <Image src alt ratioX ratioY loadingPlaceholder missingText errorText className />
Generic image view component.
PropTypes:
Name | Type | Required | Description | Default |
---|---|---|---|---|
src |
string | No | Target URL | |
alt |
string | No | Alternative text shown when image could not be loaded | |
ratioX |
number | Yes | Ratio number for x direction | |
ratioY |
number | Yes | Ratio number for y direction | |
loadingPlaceholder |
node | No | Placeholder shown when image is loading | |
missingText |
string | No | Text displayed when no image is available. | 'missing.image' |
errorText |
string | No | Text displayed when the image could not be loaded. | 'error.image' |
className |
string | No | @ignore |