1.0.3 • Published 8 years ago

react-lazyload-img v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

react-lazyload-img

lazyload image component

Installation

$ npm install react-lazyload-img --save

Usage

import * as React from 'react';
import LazyLoadImg from 'react-lazyload-img';

class App extends React.Component<any, any> {
  render() {
    <div>
      <LazyLoadImg
      src=""
      placeholder=""       
      />
    </div>
  }
}

Props

propstypedefaultdescriptionrequired
srcstringimg sourcefalse
placeholderstringwhen img unload, img`s source is placeholder | false
offset{{ min?: number, max?: number }}{ min: 0, max: 0 }viewport offsetfalse

License

MIT

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago