Input
The live input field is the standard single-line field for text, numbers, dates, email, passwords, and similar browser input types.
Common Configuration Properties
type
String
Must be "input"
label
String
Field label
model
String
Model key that stores the value
placeholder
String
Placeholder text
disabled
Boolean
Disables the field
readonly
Boolean
Makes the field read-only
required
Boolean
Marks the field as required
styleClasses
String / Array
CSS classes for the field wrapper
fieldOptions
Object
V3+ input configuration, including inputType and standard input attributes
fieldOptions
fieldOptionsThe live V3+ field reads its HTML input configuration from fieldOptions.
Common keys include:
inputType
String
Browser input type such as text, password, email, number, url, tel, date, datetime-local, color, or range
autocomplete
String
Browser autocomplete mode
min
Number / String
Minimum value for numeric/date-like inputs
max
Number / String
Maximum value for numeric/date-like inputs
step
Number / String
Step increment for numeric/range inputs
maxlength
Number
Maximum length for text-like inputs
minlength
Number
Minimum length for text-like inputs
pattern
String
HTML input pattern
accept
String
Accepted file types when using file-style inputs
Example Schema Snippet
Number Input Example
Runtime Notes
fieldOptions.inputTypeis the canonical V3+ shape. BetterForms can migrate legacy top-levelinputType, but docs should preferfieldOptions.For
numberandrange, the field parses user input into numeric values.For
date,datetime, anddatetime-local, the field applies date parsing and formatting logic before writing back to the model.If
schema.formatis supplied for date-like input types, it is used when formatting the stored value.
Full Property Reference
This element is implemented in the sibling vue-form-generator source as fieldInput.vue.
Last updated
Was this helpful?