Skip to content

Using tooltips without tooltip provider #2183

Answered by benoitgrelard
brianlovin asked this question in Help
Discussion options

You must be logged in to vote

Hey Brian,

Is it possible to use tooltips without the provider?

No, it isn't possible to use without the provider. The provider lets you configure things like timings globally for your app, but also manages the ability to move from an element with a tooltip to another one with another tooltip without having to incur the delay again.

Alternatively, is there a major drawback to simply including the <Tooltip.Provider> wrapper in our Tooltip.tsx component, being used on every instance of a tooltip in our app?

If having a global provider isn't possible for your, then yes you may do this, wrap your implemention with the provider, everything will work except the latter point mentioned above,…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@brianlovin
Comment options

Answer selected by brianlovin
Comment options

You must be logged in to vote
1 reply
@pdrbrnd
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants