git ssb

16+

Dominic / patchbay



Tree: f20c3906c76d5d99c04235d9c0c4f2c711dea2bb

Files: f20c3906c76d5d99c04235d9c0c4f2c711dea2bb / main / html / scroller.js

536 bytesRaw
1const { h } = require('mutant')
2const nest = require('depnest')
3
4exports.gives = nest('main.html.scroller')
5
6exports.create = function (api) {
7 return nest('main.html.scroller', Scroller)
8
9 function Scroller ({ prepend = [], append = [] } = {}) {
10 const content = h('section.content')
11
12 const container = h('Scroller', { style: { overflow: 'auto' } }, [
13 h('div.wrapper', [
14 h('header', prepend),
15 content,
16 h('footer', append)
17 ])
18 ])
19
20 return {
21 content,
22 container
23 }
24 }
25}
26
27

Built with git-ssb-web