Skip to content

Commit a36b558

Browse files
committed
docs: add docs
1 parent 4e8dbce commit a36b558

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,10 @@ export default withQuery(query)(Page);
247247
| fadeInDuration | integer | :x: | Duration (in ms) of the fade-in transition effect upoad image loading | 500 |
248248
| intersectionThreshold | float | :x: | Indicate at what percentage of the placeholder visibility the loading of the image should be triggered. A value of 0 means that as soon as even one pixel is visible, the callback will be run. A value of 1.0 means that the threshold isn't considered passed until every pixel is visible. | 0 |
249249
| intersectionMargin | string | :x: | Margin around the placeholder. Can have values similar to the CSS margin property (top, right, bottom, left). The values can be percentages. This set of values serves to grow or shrink each side of the placeholder element's bounding box before computing intersections. | "0px 0px 0px 0px" |
250-
| lazyLoad | Boolean | :x: | Wheter enable lazy loading or not | true |
251-
| explicitWidth | Boolean | :x: | Wheter the image wrapper should explicitely declare the width of the image or keep it fluid | false |
250+
| lazyLoad | Boolean | :x: | Whether enable lazy loading or not | true |
251+
| explicitWidth | Boolean | :x: | Whether the image wrapper should explicitely declare the width of the image or keep it fluid | false |
252+
| onLoad | () => void | :x: | Function triggered when the image has finished loading | undefined |
253+
| usePlaceholder | Boolean | :x: | Whether the component should use a blurred image placeholder | true |
252254

253255
### The `ResponsiveImage` object
254256

src/Image/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ type ImagePropTypes = {
6161
explicitWidth?: boolean;
6262
/** Triggered when the image finishes loading */
6363
onLoad?(): void;
64-
/** Whether the image should use a blurred image placeholder */
64+
/** Whether the component should use a blurred image placeholder */
6565
usePlaceholder?: boolean;
6666
};
6767

0 commit comments

Comments
 (0)