Input

Overview

Text fields allow users to enter text into a UI. They typically appear in forms and dialogs. In this component, a prefix, placeholder text, suffix, trailing icon, and descriptive text can be hidden or revealed depending on what is needed.

Demo

Props

PropertyDescriptionTypeValuesDefaultRequired
labelThe Label for the inputstringstring
hideLabelHide the labelboolean | undefinedboolean | undefined
nameThe name for the inputstring | undefinedstring | undefined
typeThe input typestring | undefinedstring | undefined"text"
descriptiveTextSome additional descriptive textstring | undefinedstring | undefined
placeholderThe input placeholderstring | undefinedstring | undefined
disabledDisable the inputboolean | undefinedboolean | undefined
errorDisplays an error messagestring | undefinedstring | undefined
successIndicate that something with the field has been successful. Not every field will have this, it should only be used in special situations.boolean | undefinedboolean | undefined
requiredMake the input requiredboolean | undefinedboolean | undefined
patternThe input patternstring | undefinedstring | undefined
readonlyMake the input readonlyboolean | undefinedboolean | undefined
wrapperClassAdd a class to the input wrapstring | string[] | undefinedstring | string[] | undefined
colsThe cols for a textareanumber | undefinednumber | undefined35
rowsThe rows for a textareanumber | undefinednumber | undefined4
modelValuestring | undefinedstring | undefined

Events

NameReturn Type
update:modelValue[value: string | undefined]