react-verification-input
react-verification-input copied to clipboard
Introduce a disabled state
Hi there,
I just started using the verification input component. And I am a big fan.
There is a small feature I'd be more than interested in. Would it be possible to introduce a boolean property disabled. If set to true, it would set disabled the entire input.
Thanks and best regards!
Hi, thanks for reaching out.
You can forward arbitrary props to the input element like this:
<VerificationInput inputProps={{ disabled: true }} />
Is there a reason you need this exposed on the top level?