Create Custom SVG Icons with Angular Material 11 MatIconRegistry Service. In this chapter, we will showcase the configuration required to draw a icon control using Angular Material. Icons are the necessary components when we are building modern-day web apps, and sometimes they can be frustrating. There are around 900+ material icons, all are from a single, small file(42KB) and divided into 10+ categories. You can find an angular.json file on the root of the project. But what if we want to display the custom icons while staying consistent with a Material Design styling? Today we are going to learn about Angular Material design buttons, buttons referred to an action taken by the users on the web and mobile application. We can use the built-in material icons with the component. By profession, he is a web developer with knowledge of multiple back-end platforms (e.g., PHP, Node.js, Python) and frontend JavaScript frameworks (e.g., Angular, React, and Vue). When developing an Angular application with Angular Material, there comes a point when we need to add icons on our components, or buttons etc… Angular Material has the Mat-Icon component for doing this. So, we have successfully integrated the Angular Material Icon inside the Angular demo application. In the component’s constructor method. If colors do not make you happy you can change the icons to have less saturation making them look grayish or completely grayscale by setting saturation to 0: I don’t get an example of that. UI component infrastructure and Material Design components for mobile and desktop Angular web applications. Import DomSanitizer and inject it into your component. Save the file and go to the http://localhost:4200/, and you can see that five SVG icons will be displayed. Krunal Lathiya is an Information Technology Engineer. So, our final code will look like this inside the app.component.ts file. There are some icon sets like Font Awesome, and Material Icons have made it more accessible, there is always the icon you need that is still missing. Angular material offers many components. Import a pre-built theme and Material icons. Suppose if you require to use custom svg icon in your angular project. Go to the terminal and start the angular development server. Let us use that icon inside our Angular Material tutorial. This is a type of SafeResourceUrl. Angular Material button module MatButtonModule(mat-button,mat-raised-button,mat-icon-button,mat-fab,mat-mini-fab) enhances the user experience of normal buttons (