Basic
Company (disabled)
Long last name that will be truncated

Address Address 2

City State Postal code mode_edit {{postalCode.value.length}} / 5
Number Input + Tooltip
Pump Flow ml/min
Error messages

Regular

Example This field is required Email @if (emailFormControl.hasError('required')) { This field is required } @if (emailFormControl.hasError('pattern')) { Please enter a valid email address }

With hint

Example This field is required Please type something here

Inside a form

Example This field is required

With a custom error function

Example This field is required
Prefix + Suffix

Text

Amount @if (showPrefix) { $ } .00

Text (always outline)

Amount $ .00

Icons

Amount @if (showPrefix) { calendar_today } mode_edit

Icon buttons

Amount @if (showPrefix) { }

Text & Icons

Amount $ .00 @if (showPrefix) { }

Fill Outline

Divider Colors

Input

Default color Accent color Warn color

Textarea

Default color Accent color Warn color

With error

Default color This field is required Accent color This field is required Warn color This field is required
Hints

Input

Character count (100 max) {{characterCountInputHintExample.value.length}} / 100

Textarea

Character count (100 max) {{characterCountTextareaHintExample.value.length}} / 100

Hello  First name , how are you?

Disabled field Label Required field

100% width label

Character count (100 max) {{input.value.length}} / 100

Show hint label

I favoritebold label I also home italic hint labels

Show hint label with character count {{hintLabelWithCharCount.value.length}}

Enter text to count Enter some text to count how many characters are in it. The character count is shown on the right. Length: {{longHint.value.length}}

Check to change the color:

Check to make required: {{requiredField ? 'Required field' : 'Not required field'}}

Check to hide the required marker: {{hideRequiredMarker ? 'Required Without Marker' : 'Required With Marker'}}

Auto Float Always Float

Label

What is your favorite color?

Prefixed Example:  Suffixed .00 €
Both: Email address email   @gmail.com

Empty:

Dynamic Subscript Sizing

One validation Fill appearance This field is required

One very long validation that wraps Fill appearance This field is extremely, very much, absolutely positively required so do not forget it!

One hint and one validation Fill appearance This field is required Please type something here

Multiple errors Fill appearance AAA BBB CCC

Multiple hints Fill appearance aaa bbb

No hints or errors Fill appearance

Number Inputs @for (item of items; track item; let i = $index) { }
Table
{{i+1}} Value {{item.value}}
Forms Reactive Template
Delayed value
Floating labels
Only label Label and placeholder Always float Label w/ placeholder
Textarea Autosize

Regular <textarea>

Regular <textarea> with maxRows and minRows

 

<textarea> with mat-form-field

Autosized textarea

<textarea> with ngModel

<textarea> with bindable autosize

Autosize enabled
Appearance Fill appearance This field is required Please type something here Outline appearance This field is required Please type something here
Fill appearance This field is required Please type something here Outline appearance This field is required Please type something here
Primary Accent Warn
Autofill
Use custom autofill style Autofill monitored is autofilled? {{isAutofilled ? 'yes' : 'no'}}
Disabled interactive inputs @for (appearance of appearances; track $index) {
Label Label Label
}
Textarea form-fields Label Label

Disable textarea form-fields

Appearance toggle Label

Fill Outline

Autocomplete

Pick Number @for (option of options; track option) { {{option}} }

Pick Number @for (option of options; track option) { {{option}} }

Outline form field in a tab Tab 1 input Amount $  .00 Tab 2 input Amount $  @if (showSecondPrefix) { !  } .00 Baseline Shifted text Label

Textarea alignment

Textarea Input Input
Examples

Custom control

Phone number phone Include area code

Label

Label

Without label

Label removed

@if (hasLabel$ | async){ My input }

@if (hasLabel$ | async){ My input }

No defined label

{{hiddenLabel}}