guify
Version:
A simple GUI for inspecting and changing JS variables
17 lines (13 loc) • 344 B
JavaScript
var css = require('dom-css')
export default function (root, text, theme) {
var title = root.appendChild(document.createElement('div'))
title.innerHTML = text
css(title, {
width: '100%',
textAlign: 'center',
color: theme.text2,
height: '20px',
marginBottom: '4px'
})
return title
}