diff --git a/README.md b/README.md index 8ff2de4..532e51e 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ import ModalImage from "react-modal-image"; | `hideZoom` | `boolean` | Optional. Set to `true` to hide zoom-button from the Lightbox. | | `showRotate` | `boolean` | Optional. Set to `true` to show rotate-button within the Lightbox. | | `imageBackgroundColor` | `String` | Optional. Background color of the image shown in Lightbox. Defaults to black. Handy for transparent images.   | +| `loading` | `String` | Optional. Set to `lazy` to lazy-load the thumbnail images. | ## Lightbox-only API for advanced usage diff --git a/src/index.js b/src/index.js index 5580377..40006d1 100644 --- a/src/index.js +++ b/src/index.js @@ -21,6 +21,7 @@ export default class extends Component { medium, large, alt, + loading, hideDownload, hideZoom, showRotate, @@ -41,6 +42,7 @@ export default class extends Component { src={small} srcSet={smallSrcSet} alt={alt} + loading={loading} /> {modalOpen && (