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

"hint" is not working #486

Open
Igor-Vuk opened this issue Jan 13, 2024 · 2 comments
Open

"hint" is not working #486

Igor-Vuk opened this issue Jan 13, 2024 · 2 comments

Comments

@Igor-Vuk
Copy link

Igor-Vuk commented Jan 13, 2024

If I add "hint" I get an error "The above error occurred in the Tooltip component:" Tried adding it to different things, always the same. I'm using the latest versions of react, react-three/fiber, three js

const EnvironmentMapControl = () => { return useControls("environmentMap", { intensity: { value: 0.6, min: 0, max: 2, step: 0.01, hint: "This is not working" }, }) }

@sashankaryal
Copy link

Seeing problems with rendering hint as well...

Uncaught Error: Tooltip must be used within TooltipProvider

@RodrigoHamuy
Copy link
Contributor

RodrigoHamuy commented Jul 4, 2024

In the meantime, you can patch this by wrapping your app with @radix-ui/react-tooltip Provider. If you have leva installed, it will already be installed so no need to do npm i @radix-ui/react-tooltip.

import { Provider } from "@radix-ui/react-tooltip";
const App => <Provider>... the rest of your app</Provider>

I really hope leva development resuscitates at some point 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants