leptos-image
leptos-image copied to clipboard
Support for <picture> element
Picture tag adds different sources for different media such as loading low quality image on mobile & high quality one in PC. I believe, currently only <img> is supported
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture
I will look into this. Unsure if the maintainer is still active, but I think I can give a stab at it.
The type attribute is interesting to me. I will also look into adding an ImageType enum for Avif, WebP, JPEG, and PNG with a client side validation for avif to see if the Browser support it, if not default to Webp.