gilbarbara / react-floater

Advanced tooltips for React
https://codesandbox.io/s/github/gilbarbara/react-floater/tree/main/demo
MIT License
220 stars 37 forks source link

Allow user to manually set the offset of the arrow #37

Closed mrstebo closed 6 years ago

mrstebo commented 6 years ago

I've been using this library indirectly for an Electron app (with react-joyride), and found the need to be able to move the arrow. This is because I wanted the arrow to point to something outside of the application window.

Use cases for others may be that they create a dialog and want a step to point to it from a parent window.

gilbarbara commented 6 years ago

Hello, The floater, including the arrow positioning, is handled by popper.js. If you need to change its behavior, you could set a modifier function via props. Take a look at the source