pmndrs / react-spring

✌️ A spring physics based React animation library
http://www.react-spring.dev/
MIT License
27.71k stars 1.18k forks source link

[bug]: Incorrect tooltips in useTransition docs #2232

Open dibenso opened 6 months ago

dibenso commented 6 months ago

Which react-spring target are you using?

What version of react-spring are you using?

9.7.3

What's Wrong?

Browsing the docs for useTransition on https://www.react-spring.dev/docs/components/use-transition shows the incorrect tooltip content for the following props:

The tooltip content for these props show The to prop, is very versatile, for more information checkout out Async Animations.

image

To Reproduce

Check the References section in the useTransition docs and activate the tooltips for:

They display incorrect information about each prop.

Expected Behaviour

The tooltip should show information relevant to what each prop does, instead of the to prop for all of them.

Link to repo

https://www.react-spring.dev/docs/components/use-transition#reference

joshuaellis commented 6 months ago

Feel free to make a PR! 😊