We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94df38a commit aa09635Copy full SHA for aa09635
1 file changed
src/index.jsx
@@ -11,11 +11,13 @@ module.exports = class extends React.Component {
11
static propTypes = {
12
options: React.PropTypes.object,
13
onChange: React.PropTypes.func,
14
- tag: React.PropTypes.string
+ tag: React.PropTypes.string,
15
+ style: React.PropTypes.object
16
};
17
static defaultProps = {
18
options: {},
- tag: 'div'
19
+ tag: 'div',
20
+ style: {}
21
22
sortable = null;
23
@@ -79,7 +81,7 @@ module.exports = class extends React.Component {
79
81
}
80
82
83
render() {
- const { children, className, tag } = this.props;
- return React.DOM[tag]({ className }, children);
84
+ const { children, className, tag, style } = this.props;
85
+ return React.DOM[tag]({ className, style }, children);
86
87
0 commit comments