Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-stramavus committed Sep 18, 2019
2 parents c0abd75 + 9696ce0 commit 4efdd68
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ render(<App />, document.body);

## <a name="implement"></a>Step 3: Implement it

Finally, just use the Img component:
### Img component:

```html
<Img src="img.jpg" alt="Demo image" ratio={1.5}/>
Expand All @@ -135,6 +135,16 @@ the image position while image is loading.

<a href="https://codesandbox.io/s/1840nl707j"><img src="https://codesandbox.io/static/img/play-codesandbox.svg" alt="edeit in codesandbox"/></a>

### BackgroundImg component:

```html
<BackgroundImg src="img.jpg">
{'Your conent...'}
</BackgroundImg>
```

<a href="https://codesandbox.io/s/react-cloudimage-responsive-background-1nin8"><img src="https://codesandbox.io/static/img/play-codesandbox.svg" alt="edeit in codesandbox"/></a>

## <a name="configuration"></a> Config

### token
Expand Down

0 comments on commit 4efdd68

Please sign in to comment.