slmgc / react-hint

Tooltip component for React, Preact, Inferno
https://react-hint.js.org/
MIT License
335 stars 28 forks source link

Is there a duration parameter? #40

Closed Vpet95 closed 5 years ago

Vpet95 commented 5 years ago

A duration parameter would be nice, to configure how long the tooltips stay visible. Based on the documentation I don't believe there is - correct me if I'm wrong!

slmgc commented 5 years ago

There is one. There is a property in the docs called "delay" which accepts either number or an object, e.g.

<ReactHint delay={{show: 0, hide: 1000}} /> // hide the tooltip after 1 second

Hope this helps!

slmgc commented 5 years ago

Closing, please feel free to reopen in case you still have questions.