1.0.1 • Published 6 years ago

lqip-react v1.0.1

Weekly downloads
102
License
MIT
Repository
github
Last release
6 years ago

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"