input()
Generate an <input>
or <textarea>
Params:
-
id {string}
Must be unique on the page, and match label
id
-
type {string} = text
-
required {boolean} = false
-
name {string | none} = none
The
id
is used when no name is given -
attrs {object} = {}