0.0.24 • Published 8 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
8 years ago
0.0.23
8 years ago
0.0.22
8 years ago
0.0.21
8 years ago
0.0.20
8 years ago
0.0.19
8 years ago
0.0.18
8 years ago
0.0.17
8 years ago
0.0.16
8 years ago
0.0.15
8 years ago
0.0.14
8 years ago
0.0.13
8 years ago
0.0.12
8 years ago
0.0.11
8 years ago
0.0.10
8 years ago
0.0.9
8 years ago
0.0.8
8 years ago
0.0.7
8 years ago
0.0.6
8 years ago
0.0.5
8 years ago
0.0.4
8 years ago
0.0.3
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago