Skip to content

Commit 37a8a09

Browse files
ctrlaltdylanapollonian
authored andcommitted
Passing className as a prop for styled-components support
1 parent d88de10 commit 37a8a09

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/index.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ type Props = {
2222
shouldAutoFocus?: boolean,
2323
isInputNum?: boolean,
2424
value?: string,
25+
className?: string
2526
};
2627

2728
type State = {
@@ -82,11 +83,12 @@ class SingleOtpInput extends PureComponent<*> {
8283
shouldAutoFocus,
8384
isInputNum,
8485
value,
86+
className,
8587
...rest
8688
} = this.props;
8789

8890
return (
89-
<div style={{ display: 'flex', alignItems: 'center' }}>
91+
<div className={className} style={{ display: 'flex', alignItems: 'center' }}>
9092
<input
9193
autoComplete="off"
9294
style={Object.assign(

0 commit comments

Comments
 (0)