Input

Inputs that accept typed input from users

Contents

Types

Currency

Input that accepts a numeric input in the selected currency. Value must be greater than 0.

$
AUD

Email

Accepts any valid email format.

Number

Accepts numeric inputs. We support minimum value inputs.

Number increment

Used when you want to give users an easier to use interface to increment a number.

Number text

Accepts numeric inputs, but returns value as a string. Useful when leading zeros are required.

Password

Input that contains an on/off visibility for users to track the input that they have typed.

Text

Standard text field that accepts any text or numeric input that is commonly shown in forms.

Looking for dates?

Dates live in their own components so that pages without a date field don't download the calendar: use fl-date-input for a field that opens a calendar, and fl-date-range-calendar for a calendar with no field.

Search

Standard text field that comes with the standard styling for search field.

Deprecation notice

Prefer the use of the Search component instead, if you need a search input.
Inputs in Types
type : IsAny<T> extends true ? any : [T] extends [number] ? InputType.NUMBER | InputType.NUMBER_INCREMENT : [T] extends [string] ? InputType.CURRENCY | ... 4 more ... | InputType.SEARCH : never

Declared as an `@Input()` by each concrete component, which narrows it to the types that component actually renders. Not an input on its own.

afterLabel ?: string = ''
beforeLabel ?: string = ''
showIncrement ?: boolean = true

If false, the increment buttons will be hidden. Applies to InputType of NUMBER_TEXT and NUMBER.

Also set in this example
control : FormControl<T>
id ?: string
placeholder ?: string
Outputs
iconEndClick ?: any = new EventEmitter<MouseEvent>()
iconStartClick ?: any = new EventEmitter<MouseEvent>()
onBlur ?: any = new EventEmitter<void>()
onFocus ?: any = new EventEmitter<void>()