react-placeimg
v0.0.3
Published
React component for adding placeimg(https://placeimg.com) functionality
Downloads
10
Maintainers
Readme
react-placeimg
React component for adding place holder images into your app
Installation:
npm i --save react-placeimg
Usage:
import PlaceImg from "react-placeimg";
<PlaceImg
width="800"
height="600"
category=""
filter="grayscale"
onLoad={()=>console.log("Image loaded successfully")}
/>
Params
- width : Integer in CSS pixels (e.g., 300)
- height : Integer in CSS pixels
- category : Any one of this
animals,arch,nature,people,tech
- filter : Any one of this
grayscale,sepia
Events
onLoad
: Event listener fired after image loaded