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
_Warning: gatsby-image is **not** a drop-in replacement for `<img/>`. It's
@@ -250,15 +250,16 @@ prop. e.g. `<Img sizes={sizes} />`
250
250
|`fadeIn`|`bool`| Defaults to fading in the image on load |
251
251
|`title`|`string`| Passed to the `img` element |
252
252
|`alt`|`string`| Passed to the `img` element |
253
-
|`className`|`string\|object`| Passed to the wrapper div. Object is needed to support Glamor's css prop |
254
-
|`outerWrapperClassName`|`string\|object`| Passed to the outer wrapper div. Object is needed to support Glamor's css prop |
255
-
|`style`|`object`| Spread into the default styles in the wrapper div|
253
+
|`className`|`string\|object`| Passed to the wrapper element. Object is needed to support Glamor's css prop |
254
+
|`outerWrapperClassName`|`string\|object`| Passed to the outer wrapper element. Object is needed to support Glamor's css prop |
255
+
|`style`|`object`| Spread into the default styles in the wrapper element|
256
256
|`position`|`string`| Defaults to `relative`. Pass in `absolute` to make the component `absolute` positioned |
257
257
|`backgroundColor`|`string\|bool`| Set a colored background placeholder. If true, uses "lightgray" for the color. You can also pass in any valid color string. |
258
258
|`onLoad`|`func`| A callback that is called when the full-size image has loaded. |
259
+
|`Tag`|`string`| Which HTML tag to use for wrapping elements. Defaults to `div`. |
259
260
260
261
## Image processing arguments
261
-
[gatsby-plugin-sharp](/packages/gatsby-plugin-sharp) supports many additional arguments for transforming your images like
262
+
[gatsby-plugin-sharp](/packages/gatsby-plugin-sharp) supports many additional arguments for transforming your images like
262
263
`quality`,`sizeByPixelDensity`,`pngCompressionLevel`,`cropFocus`,`greyscale` and many more. See its documentation for more.
0 commit comments