nextui icon indicating copy to clipboard operation
nextui copied to clipboard

[Feature Request] Allow Avatar to pass custom ref to img element

Open jansedlon opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe.

I need access to the underlying img element. I want to use the Avatar component to be used with blurhash, therefore access to the img element and onLoad event is required.

Describe the solution you'd like

Use useForkRef hook that allows using two refs at once (as seen in @mui/utils package). With this hook, ref from props and internal ref can be combined into one.

Describe alternatives you've considered

None

Screenshots or Videos

No response

jansedlon avatar May 16 '22 16:05 jansedlon