Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

References

Example

...

Usage

Structure

Code Block
<mat-form-field class="input-datepicker">
  <label>Datepicker</label>
  <input matInput>
  <mat-datepicker-toggle></mat-datepicker-toggle>
  <mat-datepicker></mat-datepicker>
</mat-form-field>

Container

  • Every datepicker should have a mat-form-field container with a class of input-datepicker, which formats its' label, calendar icon and datepicker styles, positioning and spacing.

Label

  • Use <label> for the datepicker label

Input

  • Use mat-input for all instances of date inputs