Quick Start with Angular (Free)
Get up and running with Hugeicons Free in your Angular app. This guide covers prerequisites, installing the Angular component and free icon package, and rendering your first icon.
Prerequisites
Before you start, make sure you have:
- Node.js and npm (or Yarn / pnpm) installed
- An Angular app set up (Angular CLI, standalone components, etc.)
- Basic familiarity with Angular components and templates
1. Install Packages
First, install the Angular component package:
npm install @hugeicons/angularThen, install the free icon pack:
npm install @hugeicons/core-free-iconsOur free package, @hugeicons/core-free-icons, includes 4,000+ icons in 1 style (Stroke Rounded only) you can use in any projects at no cost. For more styles, upgrade to Hugeicons Pro.
2. Basic Usage with Standalone Components
Hugeicons Angular supports standalone components, so you can import HugeiconsIconComponent directly into a component’s imports array without touching any NgModule.
import { Component } from '@angular/core'
import { HugeiconsIconComponent } from '@hugeicons/angular'
import { Notification03Icon } from '@hugeicons/core-free-icons'
@Component({
selector: 'app-root',
standalone: true,
imports: [HugeiconsIconComponent],
template: `
<hugeicons-icon
[icon]="notificationIcon"
[size]="24"
color="currentColor"
[strokeWidth]="1.5"
></hugeicons-icon>
`,
})
export class AppComponent {
notificationIcon = Notification03Icon
}You can adjust the size, color, and strokeWidth inputs to match your design system.
If you are still using NgModules instead of standalone components, declare
HugeiconsIconComponentin your module’sdeclarations(and optionallyexports) array and use it in your templates like any other declared component.
3. Next steps
- Learn more about all available inputs on the
HugeiconsIconwrapper - Explore interactive patterns on the Examples with Angular page
- When you're ready for more icons and styles, check out Hugeicons Pro with Angular