atomiks/tippyjs ? reverse-engineered prompt
Reverse engineered prompt
Build me a small JavaScript library for tooltips, popovers, dropdowns, and menus that feels polished and easy to use.
I want a simple API where I can attach a tooltip to any element, control the content, placement, trigger behavior, and show or hide it with JavaScript. It should handle common cases like hover, focus, click, and interactive popovers, and it should position itself nicely near the target element. Make sure it works as a reusable package I can import into a web app, and include the basic CSS needed for it to look good right away.
If it helps, look up current docs online for modern positioning and accessibility best practices. Please also include a few examples and a small demo page so I can see it working with buttons, links, and menu style popups.
Are you gonna build this?
make sure you review the code using coderabbit