Skip to content
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 Tooltips #589

Open
multiwebinc opened this issue Feb 10, 2023 · 6 comments
Open

Add optional delay to Tooltips #589

multiwebinc opened this issue Feb 10, 2023 · 6 comments
Labels
good first issue Good for newcomers 🚀 enhancement New feature or request
Milestone

Comments

@multiwebinc
Copy link
Contributor

As it is, tooltips show up (or begin to show up) immediately on mouse over. I propose adding a delay attribute to the Tooltip component that will delay showing by that many milliseconds.

@rluders rluders added the 🚀 enhancement New feature or request label Feb 10, 2023
@robbyevans
Copy link

hello, @rluders @multiwebinc, I would love to solve this issue.

@tulup-conner
Copy link
Collaborator

@robbyevans Are you still able to resolve this?

@tulup-conner tulup-conner changed the title Feature request: tooltip delay Add optional delay to Tooltips Mar 4, 2023
@robbyevans
Copy link

@tulup-conner yes I am available

@CharlesIrvineKC
Copy link

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>

@rluders rluders added the good first issue Good for newcomers label Jul 25, 2023
@rluders rluders added this to the 1.0.0 milestone Jul 25, 2023
DavidSeptimus-Klotho added a commit to DavidSeptimus-Klotho/flowbite-react that referenced this issue Dec 23, 2023
DavidSeptimus-Klotho added a commit to DavidSeptimus-Klotho/flowbite-react that referenced this issue Dec 23, 2023
@jam3smay
Copy link

jam3smay commented Feb 3, 2024

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.

@victorfunes
Copy link

This can be solved adding a delay in the theme in the animation. Just as an example try this:

animation: "transition-opacity delay-700",

If you want this behabiour always, define your own CustomFlowbiteTheme, otherwise, the component allows you to use the theme property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers 🚀 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants