hoaiduyit / react-pannellum

47 stars 38 forks source link

Allow children prop #47

Closed m-bp closed 3 years ago

m-bp commented 3 years ago

To create custom controls for Pannellum you have to add them as children of the root element (well, if you want them to work in full screen mode). The only way I can do that at the moment is by using a Portal because ReactPannellum doesn't pass its children along.

Simply passing the child prop or a spreading the received props would be great and fix this issue.