Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 3 Current »

References

Usage Rules

  • Toggles should be used for boolean options (e.g. yes/no, on/off)

Example

On

Off

Usage

Structure

<div class="mat-form-field">
  <label>Toggle Label</label>
  <mat-slide-toggle>
    Toggle Description
  </mat-slide-toggle>
</div>

Container

  • Every toggle should have a mat-form-field container, which formats its' label and toggle description

Label

  • Use <label> for the datepicker label

Toggle & Description

  • Use mat-slide-toggle for all instances of toggles, with the description placed inside the tag

  • No labels