0.0.2 • Published 8 years ago

react-material-image v0.0.2

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

Image in Material Design

Ever wanted to have a beautiful image with loading animation in material design? Well here you go.

Installation

npm i --save react-material-image

Usage

Use this component just like a regular img tag.

import { ReactMaterialImage } from 'react-material-image'

// ...

render() {
  return (
    <div>
      <ReactMaterialImage
        src="http://lorempixel.com/g/400/200"
      />
    </div>
  )
}

Properties

NameTypeDefaultDescription
src*stringImage url
styleobject{ width: 300, height: 200 }Override the inline-styles of the root element
imageStyleobject{ width: 'inherit', height: 'inherit' }Override style prop for img
loadingSizenumber40Set RefreshIndicator size
loadingStyleobject{ position: 'relative' }Override style prop for RefreshIndicator
  • required property

License

The scripts included in this repository are licensed under the MIT.