1.1.0 • Published 4 years ago

react-lazy-loading-image v1.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

NPM JavaScript Style Guide

Install

npm install --save react-lazy-loading-image

Usage

import * as React from 'react'

import MyComponent from 'react-lazy-loading-image'

class Example extends React.Component {
  render () {
    return (
      <MyComponent src={}/>
    )
  }
}

API

LazyImg

Image component working similar with standard img tag and with the following props.

PropTypeRequiredDescription
srcstringThe image source
lazybooleanSet lazy image
idstringElement Id
classNamestringElement Class Name
altstringImage alt
sizesanyImage default sizes
srcsetstringImage srcset
styleobjectElement Inline Style
heightnumberImage Default height
widthnumberImage Default width
borderstringImage Default border

License

MIT © :mouse:snyung

1.1.0

4 years ago

1.0.0

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago