-
Hello 👋 I am trying to use radix's tooltip component in sync with another tooltip library that is forced on us. The problem arises from the other tooltip library popping up at the same time as the radix popup because of some overlap in UI. I could prop drill in a function that when radix is open it would send up a state change to then trickle back down to the other tooltip and then turn it off while its on, but I dont like this approach. Since the both tooltips are under the Tooltip.Provider is there a way to plugin-to the provider and get this open/closed state from any child of the provider? I look at the source and saw |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@Raid55 There isn't a way to hook into the existing provider. I'd suggest using your own context in combination with the controlled props to store the value in a similar fashion to what you describe:
|
Beta Was this translation helpful? Give feedback.
@Raid55 There isn't a way to hook into the existing provider. I'd suggest using your own context in combination with the controlled props to store the value in a similar fashion to what you describe: