import {html} from "htl";
import {maybeWidth} from "./css.js";
import {bubbles} from "./event.js";
import {maybeLabel} from "./label.js";
import {createText, onoff, truefalse} from "./text.js";
export function textarea({
value = "",
label,
placeholder,
spellcheck,
autocomplete,
autocapitalize,
rows = 3,
minlength,
maxlength,
required = minlength > 0,
readonly,
disabled,
monospace = false,
resize = rows < 12,
width,
...options
} = {}) {
const input = html`