aholachek / react-flip-toolkit

A lightweight magic-move library for configurable layout transitions
MIT License
4.1k stars 139 forks source link

Pass all given props to Flipper component #217

Open ThenTech opened 7 months ago

ThenTech commented 7 months ago

Small change to pass along all other given props of Flipper to the created element.

I'm not sure why this wasn't the case already. My use case is to pass things such as role, data and aria attributes to the created div instead of having to create yet another nested div with the proper attributes.

Note: I don't know if any TypeScript types need to be set, I have never used TS.