Replies: 22 comments 22 replies
|
This would be great. Another resource to look at: |
|
I found this which seems to be based on headlessui: https://www.vechaiui.com/tooltip Would be amazing to have something similar directly available from headlessui instead. |
|
Any update on this? |
|
Any update? |
|
@adamwathan sorry to bump you, this tooltip was in a TailwindUI Trello to-do list. If you plan to add a tooltip, please just let us know. It's sad to use another library for showing only tooltip. I hope it makes sense after 2 years. Thanks! |
|
Pinging here to keep the thread active. It would be really great to have the tooltip as part of headlessui |
|
Pinging it too...Main competitor which is BaseUI have planned to add tooltip recently. |
|
Pinging again. Would be awesome to see |
|
Tailwind's team doesn't seem to care about Headless UI anymore. It's been stuck without new components since the last update on July 7, 2021, and there have been no recent additions for two years. Okay, that might have been a bit too harsh since it’s open source and do whatever you want, but what about TailwindUI customers who requested a tooltip? It was added to Trello and seemed to be one of the most requested features. I remember when Tailwind Labs was small, and they fulfilled every customer request. Sadly, it seems that they have become too big to listen to customers. Just my two cents. |
|
Ping |
|
I think they intended to build in the catalyst template: |
|
Pinging here to keep the thread active. |
|
+1 |
|
pinging to keep this active--this would be great |
|
PING! |
|
ping |
|
We should just switch to |
|
I've got a workaround for this, but it only works for tooltips whose trigger does not have/need an import { useRef } from "react";
export default function MyComponent(){
const buttonRef = useRef(null);
return (
<Popover>
{({ close }) => (
<>
<PopoverButton
ref={buttonRef}
className="cursor-pointer"
onMouseEnter={() => buttonRef.current?.click()}
onMouseLeave={() => close()}
>
Hover this to open tooltip
</PopoverButton>
<PopoverPanel
anchor={position}
className="ml-2 flex flex-col rounded-md bg-gray-900 px-2 py-1 text-sm font-medium text-white shadow-xl"
>
This is the content of my tooltip!
</PopoverPanel>
</>
)}
</Popover>
)
} |
|
After searching the code, I see that they do have a Tooltip component built, but have it commented out from being bundled. Does anyone know why they have not released this? |
|
I recently ran into the tooltip limitation in Headless UI as well. Changing my entire UI stack wasn’t an option, so I built something simple: 🧠 Keyboard-accessible and screen reader friendly 🎨 No styling opinions (perfect with Tailwind/DaisyUI) 📦 Tiny, dependency-free, Headless UI-inspired I made it specifically for cases like this where you want a tooltip that “just works” with Headless UI-style patterns. Hope it helps someone here! Feedback and contributions welcome 🙌 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hopefully this will be in a next release:
https://trello.com/c/KVOX3uCK/56-tooltips-popups
https://material-ui.com/components/tooltips/
https://vuetifyjs.com/en/components/tooltips/
https://vue.chakra-ui.com/tooltip
https://reakit.io/docs/tooltip/
Update: #436 (comment)
All reactions