aboutsummaryrefslogtreecommitdiff
path: root/src/lib/layout.ts
blob: 1e38bfde3c8e1dcf0be0b652d994ea6cb697126b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { h, Children, concatClassName } from 'lib/h'

export function section(attrs: object, ...children: Children): Element {
  return h('div',
    concatClassName(attrs, 'g-Layout__Section'),
    ...children
  )
}

export function line(attrs: object, ...children: Children): Element {
  return h('div',
    concatClassName(attrs, 'g-Layout__Line'),
    ...children
  )
}