git ssb

16+

Dominic / patchbay



Tree: 9559b880d14951aa95c73f0af2844ebf330d389a

Files: 9559b880d14951aa95c73f0af2844ebf330d389a / 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