-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support srcset in CardMedia #11675
Comments
It's not. We would need to use a |
It seems that supporting this feature would require us to rely on the |
We can do something like this as an alternative to |
@adeelibr Thanks for sharing. I guess we can start experimenting with this workaround. |
@oliviertassinari Can i experiment with this? |
#12481 I have for now added a separate code for only Component type "img", If this feels okay, can i remove the rest and only keep the image part Line 46 to Line 51 in CardMedia.js @oliviertassinari |
@kaycebasques Actually, it's supported, you can use the |
CardMedia component doesn't seem to support responsive images.
Expected Behavior
Should be able to pass in a
srcset
attribute for image components in general.Current Behavior
Not supported?
https://material-ui.com/api/card-media/
The text was updated successfully, but these errors were encountered: