# Input
The Input component is a form element that is used to collect a single line of information.
# Usage
To use an input, label as needed and add v-model
for automatic data binding.
See the Form Field docs for more information about labeling, descriptions, placeholders, error state, success state and more.
# Prefix
Use the prefix
prop to add a short prefix string to your Input.
# Suffix
Use the suffix
prop to add a short suffix string to your Input.
# Icons
Use the icon
prop to add an icon to your Input. Accepts valid values for the Icon Component.
# Loading spinner
Use the loading
boolean prop to show loader in place of the icon
. It takes precedence over icon
, meaning when used together, the icon
will only show when loading
is false
.
# Auto-advance
When auto-advance
boolean prop set to true - hitting "Enter" will set cursor to next input item
# Events
Event | Args | Emitted when... |
---|---|---|
@input | input value | Keystroke |
# Input HTML Attributes
Inputs are compatible with the standard html attributes (opens new window).