Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pemrouz committed May 2, 2016
1 parent 195e85b commit d0d2804
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
[![Coverage Status](https://coveralls.io/repos/rijs/features/badge.svg?branch=master&service=github)](https://coveralls.io/github/rijs/features?branch=master)
[![Build Status](https://travis-ci.org/rijs/features.svg)](https://travis-ci.org/rijs/features)

Extends the [rendering pipeline]() to enhance a component with other features (mixins).

Extend components with features

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

Features may also contribute and mixin their own styles (just specify a [needs header](https://github.com/rijs/needs)).
This pattern is the same as:

```js
d3.select(element)
.call(component)
.call(feature1)
.call(feature2)
.call(feature3)
```

Features may also contribute and mixin their own styles (just extend `css` attribute).

0 comments on commit d0d2804

Please sign in to comment.