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

Mechanism for handling open/close behavior of related toggle-layers #34

Closed everweij closed 3 years ago

everweij commented 4 years ago

Right now, it's tricky to get things like nested menu's working...

ratacat commented 4 years ago

@everweij I'm trying to build a non-nested menu with react-laag, I'm still learning React. Would you be able to point me to any documentation on how to keep the ToggleLayer open while the mouse is over the trigger as WELL as the ToggleLayer? Im just trying to build a norm hover menu item...

everweij commented 3 years ago

This is been taken care of in v2.0.0. See https://storybook.react-laag.com/?path=/docs/nested-menu-s--page for an example and https://github.com/everweij/react-laag#nesting for docs.