Current implementation only allows images prop. We should allow ref forwarding and spreading of any props supported by a div element to make it easy to customise and extend.
[x] Spread all props
[x] Simplify inner hook logic to use event listeners with minimal state updates
Current implementation only allows
images
prop. We should allow ref forwarding and spreading of any props supported by adiv
element to make it easy to customise and extend.