Icon

Angular Material Icon renders registered vector-based icons and supports icon fonts or SVGs only. BuilderKit registers the full Lucide set, so Angular Material icons are available everywhere without any per icon setup, and every mat-icon takes its size and its color from the utility classes you put on it.

Icons are used inside other components as well, for example leading or trailing the label of a button, where the spacing is handled for you.

Example

The svgIcon input picks any icon from the registered Lucide set.

<mat-icon svgIcon="circle-check"/>
<mat-icon svgIcon="search"/>

Icon sizes

An icon fills the box it is given, so a size-* utility is all it takes to go from a small glyph next to a label to a large one heading a section.

<mat-icon class="size-4" svgIcon="award"/>
<mat-icon class="size-5" svgIcon="award"/>
<mat-icon class="size-6" svgIcon="award"/>
<mat-icon class="size-8" svgIcon="award"/>
<mat-icon class="size-12" svgIcon="award"/>

Icon colors

The icon is drawn in the current text color, so it picks up whatever the surrounding text uses and a text-* utility tints it on its own for a success, a warning or a danger state.

<mat-icon class="size-6 text-neutral-a9" svgIcon="circle-check"/>
<mat-icon class="size-6 text-jade" svgIcon="circle-check"/>
<mat-icon class="size-6 text-amber" svgIcon="triangle-alert"/>
<mat-icon class="size-6 text-red" svgIcon="circle-x"/>