Replies: 6 comments 4 replies
-
The preview image on https://headlessui.com/ even suggests that there is an arrow, but there is no documentation on the topic. ![]() I would appreciate an option in headless UI without adding extra libs. |
Beta Was this translation helpful? Give feedback.
-
Today got the same problem :) I have Tooltip component based on
But now I have no idea how to add this arrow properly to v2 🤔 |
Beta Was this translation helpful? Give feedback.
-
![]() |
Beta Was this translation helpful? Give feedback.
-
Update: It seems the arrow is now gone from the documentation pages as well |
Beta Was this translation helpful? Give feedback.
-
It would be helpful to have a basic tooltip arrow element included in the library to visually connect the |
Beta Was this translation helpful? Give feedback.
-
Meanwhile, for anyone looking for a quick fix without using SVGs, here’s how I tackled it: Under: <PopoverPanel anchor={{ to: "bottom center", gap: "6px" }}> Add this: <div className="size-[calc(var(--spacing)*5*1.414/2)] mx-auto grid place-content-center translate-y-1/2">
<div className="size-5 bg-blue-500 rounded-tl-xs rotate-45"></div>
</div> Replace |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
While migrating to 2.0 I realised theres no way to have an arrow pointing to the Popvers anchor.
In 1.x I used Popper.js to place my Popovers and could add an arrow myself with a modifier.
FloatingUi has similar functionality, https://floating-ui.com/docs/floatingarrow
Any plans on making it available in Headless UI?
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions