react-auth-code-input icon indicating copy to clipboard operation
react-auth-code-input copied to clipboard

Prefill input by external values

Open zamarawka opened this issue 1 year ago • 0 comments

Hi! Thank you for good package!

I have in my requirements prefilling input by value passed in query params of page. Component's api right now is "uncontrolled", so we can't pass value to props to render it. And we also don't bind input's state with external state, passed via props. Because of this I don't have any legit way to solve my requirement.

It looks like we could extend ref's api smth like setValue as clearInput.

zamarawka avatar Nov 15 '23 12:11 zamarawka