Replies: 2 comments 2 replies
-
|
I would also be very interested in this feature. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
From Next.js 14.1, https://nextjs.org/blog/next-14-1#nextimage-support-for-picture-and-art-direction |
Beta Was this translation helpful? Give feedback.
2 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.
-
Is your feature request related to a problem? Please describe.
I'm using
unstable_getImgPropsso I can usenext/image's features with the<picture>/<source>elements, as explained in the linked comment.When I try to use this in a story, I currently get an error:
next_image__WEBPACK_IMPORTED_MODULE_2__.unstable_getImgProps is not a function.The same code works fine in my Next application, so that leads me to believe it's a missing mock in
@storybook/nextjs.Describe the solution you'd like
A working Storybook-friendly implementation of
unstable_getImgProps.Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
no
Additional context
I'm aware it's unstable at present so I understand if an implementation won't be added until the upstream feature becomes stable.
Beta Was this translation helpful? Give feedback.
All reactions