Input

Inputs that accept typed input from users

Contents

Sizes

Most input fields on a form or page will use the mid size input. In some cases like for mobile devices, a large input may be necessary to cater for designing usable touch targets.

AUTO

If set to AUTO, The height of the input box will be automatically adjusted based on it's content (ex. if there is a button inside, the box will expand based on the button's height). This will also make the font size of the text inside the box inherit.

Scaling

When designing for forms and larger screens, take into consideration the length of each field. Aim to set minimum and maximum values for margins, paddings, and container dimensions to ensure that the typography in the field and input box adjusts accordingly.

Do

Don't

Inputs in Sizes
size ?: InputSize = InputSize.MID
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>()