function checkbox(config = {}) {
const { title, description, label, checked } =
typeof config === 'string' ? { label: config } : config;
const form = input({
type: "checkbox",
title,
description,
getValue: input => input.checked,
form: html`
<form>
<label style="display: inline-block; margin: 5px 10px 3px 0; user-select: none; -webkit-user-select: none; font-size: 0.85em;">
<input
type="checkbox"
name="input"
${checked ? "checked" : ""}
style="margin-bottom: 5px;"
/>
${label}
</label>
</form>
`
});
form.output.remove();
return form;
}