react-worker-image
react-worker-image copied to clipboard
let user pass extra attributes
can you put forth a use case?
@nitish24p if you need to pass any other attribute to <img />
you can not.
For example, I need to pass custom alt
and aria
attributes.
So you want to have a support to pass alt and aria attributes as props Right?
This is a nice PR, as it allows every prop a user wants. For example height
, width
and the new decoding
as well. (Decoding ref is here: https://html.spec.whatwg.org/multipage/images.html#image-decoding-hint - afaik only Chrome implemented it yet)
Yes @manjula91 and any other attributes.