DocumentationGetting startedQuick start
Quick start
Register an icon in a component, then reference it by name in the template. That is the whole workflow.
Install
ng add @ng-icons/core
The schematic installs the core package and prompts you for the icon sets you want. See Installation for the manual equivalent.
Find an icon
Search the browser across every set at once, or narrow to the sets you already use. Each icon shows its constant name, its package and a ready-made import.
Register it where you need it
provideIcons can be placed anywhere providers are accepted. The component providers array is usually the best place, because the icon is then registered only for the component that uses it.
import { Component } from '@angular/core';
import { NgIcon, provideIcons } from '@ng-icons/core';
import { featherAirplay } from '@ng-icons/feather-icons';
@Component({
imports: [NgIcon],
providers: [provideIcons({ featherAirplay })],
template: `<ng-icon name="featherAirplay" />`,
})
export class Player {}
The name in the template must match the key you registered. If it does not, the icon renders nothing and a warning is logged to the console.