
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
react-image-grid-gallery
Advanced tools
A simple image gallery component for displaying a grid of images in React apps
A simple, easy-to-use, and responsive image gallery component for displaying a grid of images in React apps.
Available at: https://codesweetly.com/react-image-grid-gallery
NPM:
npm install react-image-grid-gallery --save
Yarn:
yarn add react-image-grid-gallery
PNPM:
pnpm add react-image-grid-gallery
import ImageGallery from "react-image-grid-gallery";
const imagesArray = [
{
alt: "Image1's alt text",
caption: "Image1's description",
src: "http://example.com/image1.jpg",
},
{
alt: "Image2's alt text",
caption: "Image2's description",
src: "http://example.com/image2.png",
},
{
alt: "Image3's alt text",
caption: "Image3's description",
src: "http://example.com/image3.webp",
},
];
function App() {
return <ImageGallery imgArray={imagesArray} columnWidth={230} gapSize={24} />;
}
Props | Type | Default | Description |
---|---|---|---|
imgArray | array | undefined |
Required. An array of objects containing the following properties:
|
columnWidth | number | 230 |
Optional. The minimum width of the gallery's columns. |
gapSize | number | 24 |
Optional. The gallery's gap size. |
2.0.0 (2024-01-03)
Named importation provides better compatibility with node and babel-like tools.
Ref: https://esbuild.github.io/content-types/#default-interop
FAQs
A simple image gallery with lightbox for displaying a grid of images in React apps
The npm package react-image-grid-gallery receives a total of 318 weekly downloads. As such, react-image-grid-gallery popularity was classified as not popular.
We found that react-image-grid-gallery demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.