Skip to content

Commit fecd667

Browse files
author
Krasimir Tsonev
authored
Merge pull request #11 from Quadric/custom-attributes
add spread operator for attributes
2 parents 342e038 + 3436970 commit fecd667

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

lib/CSSX.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/CSSX.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ export default class CSSX extends React.Component {
2424
this.state.sheet.add(this.props.styles);
2525
return React.createElement(
2626
this.props['data-element'],
27-
{ id: this.state.cssScopeId },
27+
{
28+
id: this.state.cssScopeId,
29+
...this.props,
30+
},
2831
this.props.children
2932
);
3033
}

0 commit comments

Comments
 (0)