Skip to content

Commit edbaeeb

Browse files
ctrlaltdylanapollonian
authored andcommitted
Adding className to OtpInput
1 parent 37a8a09 commit edbaeeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ class OtpInput extends Component<Props, State> {
271271
errorStyle,
272272
shouldAutoFocus,
273273
isInputNum,
274+
className
274275
} = this.props;
275276
const otp = this.getOtpValue();
276277
const inputs = [];
@@ -300,6 +301,7 @@ class OtpInput extends Component<Props, State> {
300301
errorStyle={errorStyle}
301302
shouldAutoFocus={shouldAutoFocus}
302303
isInputNum={isInputNum}
304+
className={className}
303305
/>
304306
);
305307
}

0 commit comments

Comments
 (0)