react-rainbow
react-rainbow copied to clipboard
fix: add types to ref in components that expose some methods
Some components like input expose method through ref like focus, blur, click, etc, we need to add this interface to ref exposed then when we use it like:
inputRef.current.focus()
...
<Input ref={inputRef} />
then inputRef.current.focus()
will recognize the properties exposed