Backed by open source code material streamlines collaboration between designers and developers and helps teams quickly build beautiful products.
Mat icon button angular.
But what if we want to display some custom icons while staying consistent with the material design styling.
Ui component infrastructure and material design components for mobile and desktop angular web applications.
The a element should be used for any interaction that navigates to another view.
Import maticonmodule from angular material icon.
The primary button type is raised button type provided by angular material design when we talk about high click through rate ctr then there is no best option available option then the raised button in material design.
One such component is the mat icon component.
The mat button an angular directive is used to create a button with material styling and animations.
The angular material library offers a suite of angular components styled with material design.
When you want to perform an action in webpage use button and use an anchor tag to navigate to other pages.
Material is an adaptable system of guidelines components and tools that support the best practices of user interface design.
In this chapter we will showcase the configuration required to draw a button control using angular material.
Buttons are placed anywhere in webpage and also places.
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 button and anchor a tags by following material design principles.
These icon may be used as buttons or may convey some message such as type of form field status etc.
There are a wide range of ready made material icons which we can use readily.
Buttons or links containing only icons such as mat fab mat mini fab and mat icon button should be given a meaningful label via aria label or aria labelledby.
Mat icon selector is used to display material icons in angular we have around 900 angular material icons to show the below mat icon list icons we need to load material icons css provided by google mat icon is part of angular material module called maticonmodule we can use font ligature as an icon by putting the ligature text in mat icon component.
Mat icon icon name mat icon you can change the color of the icons as per the requirement.
Follow the following steps to update the angular application we created in angular 6 project setup chapter.