Skip to content

Commit 271dd92

Browse files
committed
add style props
1 parent 37d7a19 commit 271dd92

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,17 @@ export default class ReactNumeric extends React.Component {
3737
ref={ref => (this.input = ref)}
3838
type={this.props.type}
3939
onChange={event => this.props.onChange(event, this.getValue())}
40+
className={this.props.className}
41+
style={this.props.style}
4042
/>
4143
);
4244
}
4345
}
4446

4547
ReactNumeric.propTypes = {
4648
type: PropTypes.oneOf(["text", "tel", "hidden"]),
49+
className: PropTypes.string,
50+
style: PropTypes.object,
4751
allowDecimalPadding: PropTypes.bool,
4852
caretPositionOnFocus: PropTypes.number,
4953
createLocalList: PropTypes.bool,

0 commit comments

Comments
 (0)