New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lqip-react

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lqip-react

LQIP images for react

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
3
-25%
Maintainers
1
Weekly downloads
 
Created
Source

LQIP for React

Low Quality Image Placeholder for React is a component that allows you Lazy Load images using Medium load image effects

Check this out: https://jmperezperez.com/medium-image-progressive-loading-placeholder/

Component Props

PropRequiredTypeDefault ValueDescriptionExample
aspectRatioyesstring""Defines the aspect ratio of your image. You should use the image dimentions in the format "WIDTHxHEIGHT""1280x720"
thumbnailyesstring""The path or url to your thumbnail image"http://www.micdn.com/cats_thumbnail.jpeg"
srcyesstring""The path or url to your image"http://www.micdn.com/cats_.jpeg"
lazyLoadnostring"image"This prop define how will work lazy load. You should use 1 of 3 values: image - all - none. image applies lazy load only to your images (thumbnails will be loaded all at once). all applies lazy load to both, thumbnails and images. none disable lazy load."all"
colornostring"#B9E1DC"The color for the box where the images and thumbnails will be loaded."#B9E1DC"
blurnonumber40The pixels number of blur effect in your thumbnail30
altnostring""alt value for your image"something"

Keywords

img

FAQs

Package last updated on 02 Jan 2018

Did you know?

Socket

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.

Install

Related posts