We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d88de10 commit 37a8a09Copy full SHA for 37a8a09
src/lib/index.jsx
@@ -22,6 +22,7 @@ type Props = {
22
shouldAutoFocus?: boolean,
23
isInputNum?: boolean,
24
value?: string,
25
+ className?: string
26
};
27
28
type State = {
@@ -82,11 +83,12 @@ class SingleOtpInput extends PureComponent<*> {
82
83
shouldAutoFocus,
84
isInputNum,
85
value,
86
+ className,
87
...rest
88
} = this.props;
89
90
return (
- <div style={{ display: 'flex', alignItems: 'center' }}>
91
+ <div className={className} style={{ display: 'flex', alignItems: 'center' }}>
92
<input
93
autoComplete="off"
94
style={Object.assign(
0 commit comments