Skip to content

Commit 4efdd68

Browse files
Merge remote-tracking branch 'origin/master'
2 parents c0abd75 + 9696ce0 commit 4efdd68

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ render(<App />, document.body);
124124

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

127-
Finally, just use the Img component:
127+
### Img component:
128128

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

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

138+
### BackgroundImg component:
139+
140+
```html
141+
<BackgroundImg src="img.jpg">
142+
{'Your conent...'}
143+
</BackgroundImg>
144+
```
145+
146+
<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>
147+
138148
## <a name="configuration"></a> Config
139149

140150
### token

0 commit comments

Comments
 (0)