Skip to content

Commit d0d2804

Browse files
author
pemrouz
committed
docs: update readme
1 parent 195e85b commit d0d2804

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
[![Coverage Status](https://coveralls.io/repos/rijs/features/badge.svg?branch=master&service=github)](https://coveralls.io/github/rijs/features?branch=master)
33
[![Build Status](https://travis-ci.org/rijs/features.svg)](https://travis-ci.org/rijs/features)
44

5+
Extends the [rendering pipeline]() to enhance a component with other features (mixins).
6+
57
Extend components with features
68

79
```html
@@ -19,4 +21,14 @@ ripple('feature', function(){ this.innerHTML += 'bar' } )
1921
<base-component is="feature">foobar<base-component>
2022
```
2123

22-
Features may also contribute and mixin their own styles (just specify a [needs header](https://github.com/rijs/needs)).
24+
This pattern is the same as:
25+
26+
```js
27+
d3.select(element)
28+
.call(component)
29+
.call(feature1)
30+
.call(feature2)
31+
.call(feature3)
32+
```
33+
34+
Features may also contribute and mixin their own styles (just extend `css` attribute).

0 commit comments

Comments
 (0)