everweij / react-laag

Hooks to build things like tooltips, dropdown menu's and popovers in React
https://www.react-laag.com
MIT License
907 stars 47 forks source link

migrating v1 to v2 ToggleLayerProps open function #83

Closed voxvici closed 2 years ago

voxvici commented 2 years ago

Hi, I'm unable to find a replacement for ToggleLayerProps open function that allows ClientRect as the provided value where to position tooltip

The clientRect prop is used to position the layer. Provide a function returning a ClientRect if you want react-laag to re-position the layer on scrolling / resizing.
The target prop is used to determine where to place the layer in the DOM.

Is this still possible with v2? Thank you

voxvici commented 2 years ago

docs: https://v1.react-laag.com/docs/usetogglelayer/

voxvici commented 2 years ago

For anyone facing a similar issue it doesn't seem possible I am looking at a substitute solution, the project is abandoned it seems

linden-dg commented 2 years ago

@voxvici did you find a substitute solution?