1.1.4 • Published 3 years ago

react-imgr v1.1.4

Weekly downloads
27
License
ISC
Repository
github
Last release
3 years ago

react-imgr

A Progressive Image component for React.

Installation

// with npm with react-extensions
$ npm install react-extensions

// with npm with react-compounds
$ npm install @react-compounds/image  --save

// with yarn with react-compounds
$ yarn add @react-compounds/image

// with npm
$ npm install react-imgr  --save

// with yarn
$ yarn add react-imgr

Usage

This is the basic usage of react-dropdown

import Image from 'react-imgr';
import 'react-imgr/dist/styles.min.css'

<Image
    src='image.jpg'
    preloadSrc='preloadimage.jpg'
    containerStyle={{
	width: '100%',
	height: '280px'
    }}
    initialBlur
    alt='alt tag added here'
    scale
    placeholder='placeholder.jpg'
/>

Props

NameTypeRequiredDescription
srcstringtruethe src of image
preloadSrcstringfalsethe src image preload src
containerStyleobjectfalsecontainer css styles
initialBlurbooleantruethe src initial state
altstringtruethe src alt tag
scalebooleanfalsescale the src image
placeholderstringtruethe src of the placeholder image

Demo

codesandbox.io

anishmprasad.com

anishmprasad.github.io

TODO

  • Optimization
  • CSS Polishing and Transitions
  • Documentation
  • Production Ready

License

Apache 2.0

1.1.4

3 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago