5 ms·
You can position the tooltip on the left, right, top, bottom in the markup with a class name. This way if the tooltip is in the header you can use e.g. `tooltip
by drinchev 9y ago
You can position the tooltip on the left, right, top, bottom in the markup with a class name. This way if the tooltip is in the header you can use e.g. `tooltip-bottom`.
Having 10kb tooltip library for doing this automatically is a bit of an overkill for me [1].
1 : https://atomiks.github.io/tippyjs/ https://atomiks.github.io/tippyjs/
- nawgszy 9y ago>Having 10kb tooltip library for doing this automatically is a bit of an overkill for me Of course, but I hardly see how that's comparable to writing a React class "ToolTip" which is smart enough to know where the side of the screen is, and comes with the ability to use JS.