guify
Version:
A simple GUI for inspecting and changing JS variables
17 lines (13 loc) • 361 B
JavaScript
import css from "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.colors.textSecondary,
height: "20px",
marginBottom: "4px"
});
return title;
}