system-components
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -77,2 +77,6 @@ 'use strict'; | ||
var css = function css(props) { | ||
return props.css; | ||
}; | ||
var System = function System(opts) { | ||
@@ -105,2 +109,3 @@ _classCallCheck(this, System); | ||
} | ||
blacklist.push('css'); | ||
@@ -113,3 +118,3 @@ var div = function div(props) { | ||
var Component = createComponent(div).apply(undefined, _toConsumableArray(funcs)); | ||
var Component = createComponent(div).apply(undefined, [css].concat(_toConsumableArray(funcs))); | ||
@@ -116,0 +121,0 @@ Component.defaultProps = defaultProps; |
{ | ||
"name": "system-components", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Create consistent design-system-driven React UI components", | ||
@@ -5,0 +5,0 @@ "main": "dist/index", |
@@ -107,2 +107,12 @@ | ||
### CSS prop | ||
To add one-off custom CSS to any system-component, use the `css` prop. | ||
```js | ||
<Heading css='opacity:0.75;'> | ||
Hello | ||
</Heading> | ||
``` | ||
### Extending components | ||
@@ -109,0 +119,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13279
221
155