react-photo-gallery
Advanced tools
Comparing version 6.0.4 to 6.0.5
{ | ||
"name": "react-photo-gallery", | ||
"version": "6.0.4", | ||
"version": "6.0.5", | ||
"description": "Responsive React Photo Gallery Component", | ||
@@ -5,0 +5,0 @@ "main": "lib/Gallery.js", |
@@ -95,3 +95,3 @@ <a href="http://neptunian.github.io/react-photo-gallery/"><img src="https://sandygonzales.com/rpg-logo2.png" width="350" /></a> | ||
### Gallery.photos properties | ||
### Image properties (passed into Gallery's photos prop) | ||
@@ -119,5 +119,5 @@ Property | Type | Default | Description | ||
### Passing in a custom image component | ||
### Overriding Image component to use custom component | ||
Instead of using the default image component provided, you can pass in a custom one. This would be useful if you want to change how the image looks and functions. For example, having selection functionality where clicking on an image highlights it or adds a checkmark icon over it. | ||
Instead of using the default Image component provided, you can pass in your own. This would be useful if you want to change how the image looks and functions. For example, having selection functionality where clicking on an image highlights it or adds a checkmark icon over it, favorites, captions, etc. | ||
@@ -130,3 +130,3 @@ app.js | ||
The custom component will be receive the following properties as seen from SelectedImage.js in the examples directory where `photo` is the original photo object passed in: | ||
The custom Image component will receive the following properties as seen from SelectedImage.js in the examples directory where `photo` is the original photo object passed in: | ||
@@ -133,0 +133,0 @@ ``` |
4260457
40