react-worker-image icon indicating copy to clipboard operation
react-worker-image copied to clipboard

let user pass extra attributes

Open hosmelq opened this issue 7 years ago • 5 comments

hosmelq avatar Feb 13 '18 16:02 hosmelq

can you put forth a use case?

nitish24p avatar Feb 13 '18 17:02 nitish24p

@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.

hosmelq avatar Feb 13 '18 18:02 hosmelq

So you want to have a support to pass alt and aria attributes as props Right?

manjula-dube avatar Feb 14 '18 08:02 manjula-dube

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)

kurtextrem avatar Feb 14 '18 09:02 kurtextrem

Yes @manjula91 and any other attributes.

hosmelq avatar Feb 14 '18 15:02 hosmelq