Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default class extends Component {
medium,
large,
alt,
loading,
hideDownload,
hideZoom,
showRotate,
Expand All @@ -41,6 +42,7 @@ export default class extends Component {
src={small}
srcSet={smallSrcSet}
alt={alt}
loading={loading}
/>
{modalOpen && (
<Lightbox
Expand Down