slmgc/react-hint

Global Settings in ReactHint Props

jcuenod opened this issue · 7 comments

It would be great if we could provide global settings/defaults to ReactHint through the component, for example:

<ReactHint displayDelay=100 hideDelay=300 transition="slide" />

Also, supporting those settings would be great as well ;)

slmgc commented

@jcuenod yep. I plan to add these settings in the future update. Btw, do you think it makes sense to add both show/hide delay settings?

slmgc commented

Released v2, added delay-related global settings

@slmgc Great! Sorry - don't know how I missed your question on the previous message.
The reason I had thought hide delay would be handy is because it gives the user a chance to hover on the hint if it's a harder target.

slmgc commented

@jcuenod at this point a unified delay setting for both hide/show was implemented. This can be easily extended later if there will be a need for it.

@slmgc oh ja! thanks for taking the suggestion of the global setting.

slmgc commented

I am working on the next API, it's halfway there, but I would like to get as much feedback as possible about all the inconveniences with the current API and have a proper discussion around the new API. If you could join the discussion it would be awesome: #46

Thanks for the invitation but I haven't been using react-hint for a while now so I'm probably not the ideal person.