Giter VIP home page Giter VIP logo

Comments (4)

gabrieljablonski avatar gabrieljablonski commented on June 11, 2024

Hi @alondon17.

All of the props for v5 have a description listed on our docs page here, and we also have examples for a bunch of the most useful ones here.

You might be looking at the legacy v4 docs, which we still have listed since it used by a lot of people to this day (more than v5 even).


we have need a system for menu tooltips to be loaded when their trigger is clicked

Try using openOnClick.

from react-tooltip.

alondon17 avatar alondon17 commented on June 11, 2024

i know about that prop, i meant we would like having an option for an initial state, while being uncontrolled, currently we had to replicate the click outside ourselves because the built in doesn't work with isOpen true

from react-tooltip.

gabrieljablonski avatar gabrieljablonski commented on June 11, 2024

As you can see on #1036, we already have plans for an "imperative mode", which will allow you to do something like tooltipRef.current.open(). Until then, try the following example:

https://stackblitz.com/edit/stackblitz-starters-f8xebc?file=src%2FApp.tsx

In summary, when the component is first mounted, we trigger a mouseenter event on the anchor to show the tooltip.
If this is something you are trying to do in several places, I suggest writing a wrapper component for the tooltip, so you don't have to copy and paste this logic to multiple components.

from react-tooltip.

gabrieljablonski avatar gabrieljablonski commented on June 11, 2024

I'll close the issue for now, but let us know if there's anything else.

from react-tooltip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.