Skip to content

Commit b9a8482

Browse files
committed
update docs
1 parent c9b6da3 commit b9a8482

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ Registering mixins and variables
1212
var css = require('react-css-builder');
1313
1414
// the mixin can have any number of arguments provided when the mixin is referenced
15-
css.mixin('mixin-name', function(arg1, arg2, ...) {
16-
return {
17-
// any attributes will be included with the styleset results
18-
};
15+
css.mixin('vendor-prefix', function(name, value) {
16+
var rtn = {};
17+
// if you have underscore
18+
_.each(['O', 'Webkit', 'ms', 'Moz'], function(prefix) {
19+
rtn[prefix + name] = value;
20+
});
21+
rtn[name] = value;
22+
return rtn;
1923
});
2024
2125
// add variables that can be referenced in stylesets using this.get("varName");

0 commit comments

Comments
 (0)