-
Edit: this is specific to Gatsby Image plugin, didn't realize it went directly under Gatsby repo This might be really simple, but I can't figure out how to add the I'm looking to do something like this: How does one add the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
gatsby image without query is useless, unless you want to add data manually. fluis object types
|
Beta Was this translation helpful? Give feedback.
-
@jerehut Like @pindjur correctly mentioned, sizes can't be passed in as a prop. It is meant to be part of fluid or fixed key included in the query response. |
Beta Was this translation helpful? Give feedback.
gatsby image without query is useless, unless you want to add data manually.
you can pass object to fluid prop with sizes key
fluis object types
aspectRatio: PropTypes.number.isRequired, src: PropTypes.string.isRequired, srcSet: PropTypes.string.isRequired, sizes: PropTypes.string.isRequired, base64: PropTypes.string, tracedSVG: PropTypes.string, srcWebp: PropTypes.string, srcSetWebp: PropTypes.string, media: PropTypes.string, maxWidth: PropTypes.number, maxHeight: PropTypes.number