Text field
A single-line empty form field in which the user can input any text.
Default text field orc-c-field
A single-line empty form field in which the user can input any text.
Text field error has-error
Lets the user know that their input text is invalid and can’t be registered in our system.
Text field valid is-valid
Lets the user know that their input text is valid and was registered.
Disabled text field is-disabled
Shows that the user can’t interact with the text field.
Usage
When to use
When asking the user to provide a short free-form answer.
When to consider an alternative
When the question could invite a long answer, a textarea field gives the user more room to operate.
Class Name | Description |
---|---|
Required
|
Apply to the text field’s containing HTML element. This contains the field label, field body, and field note. |
JS
|
Added to |
Modifier
|
Added to |
Modifier
|
Added to |
Modifier
|
Added to |
Required
|
Word or short phrase applied to an |
Required
|
Container used to house the text input |
Required
|
Actual text input of the field. |
|
Short excerpt that adds additional directions or context to the text field. |