react-verification-input icon indicating copy to clipboard operation
react-verification-input copied to clipboard

Introduce a disabled state

Open Maximuschka opened this issue 1 year ago • 1 comments

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!

Maximuschka avatar Feb 25 '25 14:02 Maximuschka

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?

andreaswilli avatar Mar 09 '25 08:03 andreaswilli