Check out example codes for "mat-toolbar". It will help you in understanding the concepts better.

Code Example 1

<mat-toolbar-row>
  <span>Second Line</span>
  <span class="example-spacer"></span>
  <mat-icon class="example-icon" aria-hidden="false" aria-label="Example user verified icon">verified_user</mat-icon>
</mat-toolbar-row>

Learn ReactJs, React Native from akashmittal.com