-
-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add optional delay to Tooltip
s
#589
Comments
hello, @rluders @multiwebinc, I would love to solve this issue. |
@robbyevans Are you still able to resolve this? |
Tooltip
s
@tulup-conner yes I am available |
I am also wanting to delay the tooltip popup for the component taken from https://flowbite.com/docs/components/tooltips/: <button data-tooltip-target="tooltip-default" type="button" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">Default tooltip</button>
<div id="tooltip-default" role="tooltip" class="absolute z-10 invisible inline-block px-3 py-2 text-sm font-medium text-white transition-opacity duration-300 bg-gray-900 rounded-lg shadow-sm opacity-0 tooltip dark:bg-gray-700">
Tooltip content
<div class="tooltip-arrow" data-popper-arrow></div>
</div> |
I'd also love to see this solved with a delay prop or something like trigger="hover:delay-500". Without the ability to configure a delay, this component is useless for my use cases at least. Thnx. |
This can be solved adding a delay in the theme in the animation. Just as an example try this:
If you want this behabiour always, define your own CustomFlowbiteTheme, otherwise, the component allows you to use the theme property. |
As it is, tooltips show up (or begin to show up) immediately on mouse over. I propose adding a
delay
attribute to theTooltip
component that will delay showing by that many milliseconds.The text was updated successfully, but these errors were encountered: