You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-image-grid-gallery

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-image-grid-gallery - npm Package Compare versions

Comparing version

to
0.9.2

14

package.json
{
"name": "react-image-grid-gallery",
"version": "0.9.1",
"version": "0.9.2",
"description": "A simple image gallery component for displaying a grid of images in React apps",

@@ -28,2 +28,6 @@ "main": "ImageGallery.js",

},
"dependencies": {
"fslightbox-react": "^1.7.4",
"uniqid": "^5.4.0"
},
"devDependencies": {

@@ -42,14 +46,10 @@ "@babel/cli": "^7.21.5",

"dotenv-cli": "^7.2.1",
"fslightbox-react": "^1.7.4",
"husky": "^8.0.3",
"react": "^18.2.0",
"release-it": "^15.10.3",
"typescript": "^5.0.4",
"uniqid": "^5.4.0"
"typescript": "^5.0.4"
},
"peerDependencies": {
"fslightbox-react": "^1.7.4",
"react": "^18.2.0",
"uniqid": "^5.4.0"
"react": "^18.2.0"
}
}

@@ -50,4 +50,4 @@ # React Image Grid Gallery

function App() {
return <ImageGallery imgArray={imagesArray} columnWidth={300} gapSize={7} />;
function Home() {
return <ImageGallery imgArray={imagesArray} columnWidth={230} gapSize={24} />;
}

@@ -62,2 +62,4 @@ ```

<th>Props</th>
<th>Type</th>
<th>Default</th>
<th>Description</th>

@@ -69,9 +71,11 @@ </tr>

<td><code>imgArray</code></td>
<td>array</td>
<td><code>undefined</code></td>
<td>
Required. The `imgArray` prop is an array of objects containing the following properties:
_Required._ An array of objects containing the following properties:
- `alt`: Required. The image's [alternative text](https://webaim.org/techniques/alttext/).
- `caption`: Optional. A [description of the image](https://www.studysmarter.co.uk/explanations/english/blog/image-caption/).
- `src`: Required. The [URL](https://codesweetly.com/web-address-url) of the image.
- `alt`: The image's [alternative text](https://webaim.org/techniques/alttext/). _Required._
- `caption`: The [image's description](https://www.studysmarter.co.uk/explanations/english/blog/image-caption/). _Optional._
- `src`: The image's [URL](/web-address-url). _Required._

@@ -82,8 +86,8 @@ </td>

<td><code>columnWidth</code></td>
<td>number</td>
<td><code>230</code></td>
<td>
Optional. The `columnWidth` prop is a number specifying the minimum width of the gallery's columns.
_Optional._ The minimum width of the gallery's columns.
`230` is the default value.
</td>

@@ -93,8 +97,8 @@ </tr>

<td><code>gapSize</code></td>
<td>number</td>
<td><code>24</code></td>
<td>
Optional. The `gapSize` prop is a number specifying the gallery [gap's size](https://codesweetly.com/css-gap-property).
_Optional._ The gallery's [gap size](/css-gap-property).
`24` is the default value.
</td>

@@ -101,0 +105,0 @@ </tr>