0.0.24 • Published 9 years ago
react-smart-image v0.0.24
React Smart Image
A smart img component for React. Demo
Installation
npm install react-smart-image
Details
This package provides an enhanced IMG component, allowing to display a placeholder whilst your image loads and a fallback image if it fails loading.
Example
import React from 'react';
import { Img } from 'react-smart-image';
class MyImage extends React.Component {
render() {
return (
<Img src='/my_wanted_image.png' srcFallback='/my_fallback_image.png' />
)
}
}
That's it.
Components included
Img: An enhanced Img component DivBG: A DIV component rendering a vertically + horizontally centered image ABg: Like DivBG, with an A component
0.0.24
9 years ago
0.0.23
9 years ago
0.0.22
9 years ago
0.0.21
9 years ago
0.0.20
9 years ago
0.0.19
9 years ago
0.0.18
9 years ago
0.0.17
9 years ago
0.0.16
9 years ago
0.0.15
9 years ago
0.0.14
9 years ago
0.0.13
9 years ago
0.0.12
9 years ago
0.0.11
9 years ago
0.0.10
9 years ago
0.0.9
9 years ago
0.0.8
9 years ago
0.0.7
9 years ago
0.0.6
9 years ago
0.0.5
9 years ago
0.0.4
9 years ago
0.0.3
9 years ago
0.0.2
9 years ago
0.0.1
9 years ago