Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
react-image-tiler
Advanced tools
Image tiler is a React component that displays images in a responsive, tiled layout.
$ npm install react-image-tiler
The Tiler
component has the following properties:
images
- an array of image URLs to displayminWidth
- the minimum width of an imagemaxWidth
- the maximum width of an imageparentWidth
- a function returning the pixel width of a parent. By default, it's window.innerWidth
import React from 'react'
import ReactDOM from 'react-dom'
import Tiler from 'react-image-tiler'
images = [
'http://placekitten.com/300/300',
'http://placekitten.com/300/300',
'http://placekitten.com/300/300',
'http://placekitten.com/300/300',
]
ReactDOM.render(<Tiler images={images} minWidth="200" />, document.getElementById('foo'))
See example/index.html
.
The example also includes a very simple InstagramFeed
class that makes it easy to pull a public feed of images from someone's Instagram account. It's used in the example/index.jsx
example, and also on my website
$ npm run example
FAQs
A responsive image tiling component for React
The npm package react-image-tiler receives a total of 1 weekly downloads. As such, react-image-tiler popularity was classified as not popular.
We found that react-image-tiler demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.