Any tooltip library recommendation that plays well with reagent? The main goal is to build dropdown menus and information tooltips. We are using raw CLJS now, but correctly positioning the element is getting tricky.Thanks!
Ok, thanks I will give look to react-tooltip
We are currently experimenting with https://floating-ui.com/ Will post here our final conclusion. Just in case it's useful for someone in the future
You can leverage the react ecosystem with a complete (light weight) widget library like https://ant.design/. Shadow CLJs helps with the interop and itβs even easier if you use https://github.com/roman01la/uix/https://github.com/pitch-io/uix instead of reagent.
We ended up using FloatingUI via interop for both tooltips and dropdown menus. Creating the required cljsjs packages was a bit tedious (we are still on lein+figwheel) and the interop is not very elegant (specially because it uses React hooks). But apart from it works smoothly.
I'd use some React library for that instead of searching for a CLJS solution.
And probably 2 separate libraries - one for drop-downs and one for tooltips.
Agreed on both. I've had good luck in the past using react-tooltip and tooltips from component libraries like Material UI
Menus should have separate treatment since they have different requirements and design than tooltips. The only thing in common is the need to anchor to an element and listening for clicks
this is late, but i really like radix https://www.radix-ui.com/docs/primitives/components/tooltip lots of accessibility baked in