slot system for snabbdom stateless components
slot system for snabbdom stateless components based on Shadow DOM API
✓ slot system based on web component / [Shadow DOM spec](https://developers.google.com/web/fundamentals/web-components/shadowdom)<br>
✓ works with JSX or hyperscript<br>
````jsx harmony
import { withSlot } from ‘snabbdom-slot’
import Snabbdom from ‘snabbdom-pragma’
const Component = withSlot((props) => {
return (
const tree = (
//render tree with snabbdom
Output
```html
<div>
<div>My great component</div>
<slot name="header">
<div slot="header">Custom title</div>
</slot>
<slot>
<div>Main content</div>
<div>More content</div>
</slot>
<slot name="footer">
<div slot="footer">All rights reserved</div>
</slot>
</div>
Check this for more info about slot element behavior
Copyright © 2015-2016 Luiz Américo Pereira Câmara. This source code is licensed under the MIT license found in
the LICENSE.txt file.
The documentation to the project is licensed under the CC BY-SA 4.0
license.