You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/integrations/vue.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,7 @@ The `UnLazyImage` component accepts the following props:
66
66
|`thumbhash`| String | A ThumbHash string representing the blurry placeholder image. |
67
67
|`placeholderSrc`| String | Optional image source URL for a custom placeholder image. Will be ignored if a BlurHash or ThumbHash is provided. |
68
68
|`placeholderSize`| Number | The size of the longer edge (width or height) of the BlurHash image to be decoded, depending on the aspect ratio. This option only applies when the `blurhash` prop is used. |
69
+
|`preload`| Boolean | A flag to indicate whether the image should be preloaded, even if it's not in the viewport yet. |
69
70
70
71
## Examples
71
72
@@ -96,3 +97,17 @@ The `UnLazyImage` component accepts the following props:
96
97
::: tip
97
98
In each example, the `sizes` attribute is automatically calculated given the `auto-sizes` prop.
98
99
:::
100
+
101
+
### Preload Image
102
+
103
+
Useful if the `UnLazyImage` is part of e.g. a slider, and you want to preload the next image.
/** The size of the longer edge (width or height) of the BlurHash image to be decoded, depending on the aspect ratio. This option only applies when the `blurhash` prop is used. */
23
23
placeholderSize?:number
24
+
/**
25
+
* A flag to indicate whether the image should be preloaded, even if it's not in the viewport yet.
0 commit comments