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
* feat: Add placeholder support for images (#173)
* fix: return null for non images
* fix merge conflict
Co-authored-by: João Pedro Schmitz <oi@joaopedro.cc>
Copy file name to clipboardExpand all lines: gatsby-source-graphcms/README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -190,6 +190,9 @@ Use the `gatsbyImageData` resolver on your `GraphCMS_Asset` nodes.
190
190
|`quality`| Int | The default image quality generated. This is overridden by any format-specific options. |
191
191
|`sizes`| String |[The `<img> sizes` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes), passed to the img tag. This describes the display size of the image, and does not affect generated images. You are only likely to need to change this if your are using full width images that do not span the full width of the screen. |
192
192
|`width`| Int | Change the size of the image. |
193
+
|`placeholder`|`NONE`/`BLURRED`/`DOMINANT_COLOR`/`TRACED_SVG`| Choose the style of temporary image shown while the full image loads. |
194
+
195
+
**NOTE**: `gatsby-plugin-sharp` needs to be listed as a dependency on your project if you plan to use placeholder `TRACED_SVG` or `DOMINANT_COLOR`.
193
196
194
197
For more information on using `gatsby-plugin-image`, please see the [documentation](https://www.gatsbyjs.com/plugins/gatsby-plugin-image/).
0 commit comments