Skip to content

Commit 6bb4190

Browse files
author
amrelbialy
committed
feat: add onImgLoad to img and background
1 parent 5e1c11c commit 6bb4190

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,14 @@ relative to baseUrl in your config.
328328
329329
The plugin uses a special algorithm to detect the width of image container and set the image size accordingly.
330330
This is the recommended way of using the Cloudimage Responsive plugin.
331-
331+
### onImgLoad
332+
###### Type: **function** | Default: **undefined**
333+
A function to be executed after the image is loaded
334+
```jsx
335+
<Img
336+
src="dino-reichmuth-1.jpg"
337+
onImgLoad={(params)=>{console.log(params);}}/>
338+
```
332339
### width
333340
334341
###### Type: **String** (e.g. 300px, 20vw) | Default: **undefined**

0 commit comments

Comments
 (0)