Input

Inputs that accept typed input from users

Contents

States

Display each state of the input field

When a user interacts with an input field, display a focus state to allow users to concentrate on finishing the field. If the user enters the information incorrectly, show an error validation message to help the user in solving the issue.

Autofocus

The first input that is highlighted on the form. Typically seen in sign up, log in and quote form pages.

Default

If there are many fields on the form or page, a default state is shown until the user interacts with the input.

Active/Focus

Once a user interacts with an input field, an active or focus state is shown to let the user know that the field is working.

Disabled

Only show disabled inputs when it is necessary. A rule of thumb is if the field is temporarily disabled and can be active at a later stage, display a disabled state. If the input is not allowed for a user to change due to a lack of permission from the back-end, consider completely hiding it from the interface.

Inputs in States
disabled : boolean
autofocus ?: AutoFocusOption = AutoFocusOption.NONE
Also set in this example
control : FormControl<T>
placeholder ?: string
Outputs
iconEndClick ?: any = new EventEmitter<MouseEvent>()
iconStartClick ?: any = new EventEmitter<MouseEvent>()
onBlur ?: any = new EventEmitter<void>()
onFocus ?: any = new EventEmitter<void>()