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/nuxt.md
+18-12Lines changed: 18 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,46 +78,50 @@ The `UnLazyImage` component accepts the following props:
78
78
79
79
| Prop | Type | Description |
80
80
| --- | --- | --- |
81
+
|`src`| String | Image source URL to be lazy-loaded. |
82
+
|`srcSet`| String | Image source set to be lazy-loaded. |
81
83
|`autoSizes`| Boolean | A flag to indicate whether the sizes attribute should be automatically calculated. |
82
84
|`thumbhash`| String | A ThumbHash string representing the blurry placeholder image. |
83
85
|`blurhash`| String | A BlurHash string representing the blurry placeholder image. |
86
+
|`placeholderSrc`| String | Optional image source URL for a custom placeholder image. Will be ignored if a BlurHash or ThumbHash is provided. |
84
87
|`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. |
85
88
|`placeholderRatio`| Number | Aspect ratio (width / height) of the decoded BlurHash image. Only applies to SSR-decoded placeholder images from a BlurHash string. |
86
89
|`lazyLoad`| Boolean | A flag to indicate whether the image should be lazy-loaded (default) or deferred until this prop is set to `true`. Note: Placeholder images from hashes will still be decoded. |
87
90
|`ssr`| Boolean | Whether the ThumbHash or BlurHash should be decoded on the server. Overrides the global module configuration if set. |
88
91
89
92
## Examples
90
93
91
-
::: info
92
-
In each example, the `sizes` attribute is automatically calculated given the `auto-sizes` prop.
@@ -46,43 +46,46 @@ The `UnLazyImage` component accepts the following props:
46
46
47
47
| Prop | Type | Description |
48
48
| --- | --- | --- |
49
+
|`src`| String | Image source URL to be lazy-loaded. |
50
+
|`srcSet`| String | Image source set to be lazy-loaded. |
49
51
|`autoSizes`| Boolean | A flag to indicate whether the sizes attribute should be automatically calculated. |
50
52
|`blurhash`| String | A BlurHash string representing the blurry placeholder image. |
51
53
|`thumbhash`| String | A ThumbHash string representing the blurry placeholder image. |
54
+
|`placeholderSrc`| String | Optional image source URL for a custom placeholder image. Will be ignored if a BlurHash or ThumbHash is provided. |
52
55
|`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. |
53
56
54
57
## Examples
55
58
56
-
::: info
57
-
In each example, the `sizes` attribute is automatically calculated given the `auto-sizes` prop.
@@ -46,43 +46,46 @@ The `UnLazyImage` component accepts the following props:
46
46
47
47
| Prop | Type | Description |
48
48
| --- | --- | --- |
49
+
|`src`| String | Image source URL to be lazy-loaded. |
50
+
|`srcSet`| String | Image source set to be lazy-loaded. |
49
51
|`autoSizes`| Boolean | A flag to indicate whether the sizes attribute should be automatically calculated. |
50
52
|`blurhash`| String | A BlurHash string representing the blurry placeholder image. |
51
53
|`thumbhash`| String | A ThumbHash string representing the blurry placeholder image. |
54
+
|`placeholderSrc`| String | Optional image source URL for a custom placeholder image. Will be ignored if a BlurHash or ThumbHash is provided. |
52
55
|`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. |
53
56
54
57
## Examples
55
58
56
-
::: info
57
-
In each example, the `sizes` attribute is automatically calculated given the `auto-sizes` prop.
@@ -44,37 +44,40 @@ The `UnLazyImage` component accepts the following props:
44
44
45
45
| Prop | Type | Description |
46
46
| --- | --- | --- |
47
+
|`src`| String | Image source URL to be lazy-loaded. |
48
+
|`srcSet`| String | Image source set to be lazy-loaded. |
47
49
|`autoSizes`| Boolean | A flag to indicate whether the sizes attribute should be automatically calculated. |
48
50
|`blurhash`| String | A BlurHash string representing the blurry placeholder image. |
49
51
|`thumbhash`| String | A ThumbHash string representing the blurry placeholder image. |
52
+
|`placeholderSrc`| String | Optional image source URL for a custom placeholder image. Will be ignored if a BlurHash or ThumbHash is provided. |
50
53
|`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. |
51
54
52
55
## Examples
53
56
54
-
::: info
55
-
In each example, the `sizes` attribute is automatically calculated given the `auto-sizes` prop.
@@ -64,34 +64,35 @@ The `UnLazyImage` component accepts the following props:
64
64
|`autoSizes`| Boolean | A flag to indicate whether the sizes attribute should be automatically calculated. |
65
65
|`blurhash`| String | A BlurHash string representing the blurry placeholder image. |
66
66
|`thumbhash`| String | A ThumbHash string representing the blurry placeholder image. |
67
+
|`placeholderSrc`| String | Optional image source URL for a custom placeholder image. Will be ignored if a BlurHash or ThumbHash is provided. |
67
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. |
68
69
69
70
## Examples
70
71
71
-
::: info
72
-
In each example, the `sizes` attribute is automatically calculated given the `auto-sizes` prop.
0 commit comments