Closed carryall closed 1 year ago
Describe the Feature Request
Describe Preferred Solution provide another attribute for custom test attributes
<OtpInput value={otp} onChange={onOTPChange} numInputs={4} testIds={ { data-test: 'input-otp' } } />
then the test attribute added to the input like data-test='input-otp-0', data-test='input-otp-1', data-test='input-otp-2', data-test='input-otp-3'
data-test='input-otp-0'
data-test='input-otp-1'
data-test='input-otp-2'
data-test='input-otp-3'
The feature is available in: https://www.npmjs.com/package/react18-input-otp
You can now customize the input with v3 and add any props you want
Describe the Feature Request
Describe Preferred Solution provide another attribute for custom test attributes
then the test attribute added to the input like
data-test='input-otp-0'
,data-test='input-otp-1'
,data-test='input-otp-2'
,data-test='input-otp-3'