Skip to content

Text Input

<vox-input> is a single-line text input that participates in native form submission (via ElementInternals).

html
<vox-input
  label="Module name"
  name="module"
  placeholder="puppet-nginx"
  note="Lowercase, hyphen-separated."
></vox-input>

API

AttributeTypeDefaultDescription
labelstringField label
namestringForm field name
valuestring''Current value
typestringtextNative input type
placeholderstringPlaceholder text
notestringHelp text below the input
required / readonly / disabledbooleanfalseNative states

Fires input and change events. Exposes form, validity, checkValidity(), reportValidity().

Released under the Apache-2.0 License.