0.0.24 • Published 10 years ago

react-smart-image v0.0.24

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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

10 years ago

0.0.23

10 years ago

0.0.22

10 years ago

0.0.21

10 years ago

0.0.20

10 years ago

0.0.19

10 years ago

0.0.18

10 years ago

0.0.17

10 years ago

0.0.16

10 years ago

0.0.15

10 years ago

0.0.14

10 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago