[gatsby-plugin-image] Styling options for placeholder image missing. #31322
Unanswered
nimajnebp
asked this question in
Ideas / Feature Requests
Replies: 1 comment 3 replies
-
@nimajnebp Thanks for your question. This was intentional, I'm curious what other styling you want to add to the placeholder? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
New image plugin missing placeholder image styling options.
I'm using the new gatsby-plugin-image and was trying to add styling to the placeholder image. I opted for the placeholder="blurred" option, then i wanted to add some extra styling to that blurred placeholder on top of the default.
The old gatsby-image gave us a clear way to that with
placeholderStyle
andplaceholderClassName
, but the new plugin has seemingly one way which is theblurredOptions
.Official documentation on
blurredOptions
:"Options for the low-resolution placeholder image. Ignored unless placeholder is blurred."
In the source files i found that it expects
width
andformat
, which is bad news for those who expected style options.Anybody know how to add styling to the placeholder the new way?
Beta Was this translation helpful? Give feedback.
All reactions