Image

Component to display an image.

Example#

Live Editor
Result

Options#

  • src | string (required): image source location. Default: none.
  • alt | string: image description. Default: ''.
  • body | string: base64 encoded data of image. Default: none.
  • height | (number|string): image height (in px). Default: none.
  • width | (number|string): image width (in px). Default: none.
  • id | string: component identifier. Default: none.
  • showModal | boolean: controls whether to display fullscreen modal view. Default: true.
  • className | string: class name. Default: ''.
  • style | object: CSS inline styles. Default: {}.
  • onShare | function: callback invoked with the image if the "share" button is clicked. Default: none.
Last updated on by Planeshifter