Support responsive image sources for BackgroundImage #9129
manufac-nrawat
started this conversation in
Feature requests
Replies: 0 comments
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.
Mantine's
BackgroundImagecomponent currently accepts a singlesrcvalue for the background image. It would be useful to have support for responsive image sources, similar tosrcSet/sizeson the native<img>element and Mantine'sImagecomponent.For example:
Or an equivalent Mantine API that allows responsive image sources to be specified.
I would be interested to know whether this is something that could be supported by
BackgroundImage, or if there is a recommended Mantine approach for achieving equivalent responsive image loading with CSS backgrounds.All reactions