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.

Example

Properties

PropertyDescriptionTypeDefaultRequired
labelThe label for the inputstring
hideLabelHide the labelbooleanfalse
disabledDisable the inputbooleanfalse
successIndicate that something with the field has been successful. Not every field will have this, it should only be used in special situations.booleanfalse
nameThe name for the inputstring
typeThe input type. Must be a valid html input type.stringtext
descriptiveTextSome additional descriptive textstring
placeholderThe input placeholderstring
errorDisplays an error messagestring
requiredMake the input requiredbooleanfalse
patternThe input patternstring
readonlyMake the input readonlybooleanfalse
wrapperClassAdd a class or classes to the input wrapperClassstring | Array
colsThe cols for a textareanumber35
rowsThe rows for a textareanumber4