Table of Contents

MBIconHelper

Summary

A helper class returning icon foundries for icons in use across Material.Blazor components.

Details

  • Has three static methods (click for API documentation) to return one of the following three icon foundries for any IconFoundry component parameter:
    • Material Icons via MBIconHelper.MIFoundry(Nullable<MBIconMITheme>);
    • Font Awesome Icons via MBIconHelper.FAFoundry(Nullable<MBIconFAStyle>, Nullable<MBIconFARelativeSize>); and
    • Open Iconic Icons via MBIconHelper.OIFoundry();
  • Material Icons are included in the Material.Blazor bundled CSS;
  • Font Awesome Icons version 5 are optional and can be included in your HTML <head> with the CDN link:
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css" integrity="sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog==" crossorigin="anonymous" />
    
  • Open Iconic Icons version 1.1 are also optional and can be included in your HTML <head> with the CDN link:
    <link href="https://cdnjs.cloudflare.com/ajax/libs/open-iconic/1.1.1/font/css/open-iconic.min.css" crossorigin="anonymous" rel="stylesheet" />
    

 

 

Components Docs