
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
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 376 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socketโs new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.