2.0.0 • Published 4 years ago

@app-elements/image v2.0.0

Weekly downloads
118
License
ISC
Repository
github
Last release
4 years ago

Image

Renders an <img /> with an array of src's, rendering each, in order, as the complete. The idea is the first is the smallest filesize and the last is the highest resolution.

Installation

npm install --save @app-elements/image

Usage

import Image from '@app-elements/image'

<Image
  srcs={[
    'http://www.placehold.it/200x150/eee/eee?text=Loading',
    'http://www.placehold.it/400x300/f44/fff?text=MediumRes',
    'http://www.placehold.it/800x600/44f/fff?text=HighRes'
  ]}
/>

Props

PropTypeDefaultDescription
srcsArrayNoneAn array of image URLs.
2.0.0

4 years ago

2.0.0-alpha.0

4 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.5

5 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago