Official Angular component for Font Awesome 5+
Go to file
Yaroslav Admin 993769e7f6 Release 3.0.0 2025-08-03 22:54:40 +02:00
.github Enhance accessibility tests for FaIconComponent by verifying title attribute handling in Font Awesome 7+ 2025-07-31 11:08:10 +02:00
.yarn/patches Fix integration tests 2024-11-20 22:29:44 +01:00
docs Release 3.0.0 2025-08-03 22:54:40 +02:00
projects Release 3.0.0 2025-08-03 22:54:40 +02:00
src Convert most FontAwesome elements to self-closing tags (#477) 2025-08-03 22:25:39 +02:00
tasks Introduce Prettier and format the codebase 2019-11-10 17:00:39 +01:00
testing Convert most FontAwesome elements to self-closing tags (#477) 2025-08-03 22:25:39 +02:00
.editorconfig Reorganize for distribution as an Angular library (#4) 2018-01-18 16:23:44 -08:00
.eslintrc.json Update Angular ESLint dependencies and configuration 2025-05-30 12:03:27 +02:00
.gitignore Add global styles properly in the SSR context 2024-05-15 19:23:21 +02:00
.prettierrc.json Update to latest dependencies 2020-03-28 10:20:44 +01:00
.yarnrc.yml Bump Node and Yarn 2023-11-08 19:01:15 +01:00
CHANGELOG.md Release 3.0.0 2025-08-03 22:54:40 +02:00
CODE_OF_CONDUCT.md feat(docs): move docs into docs folder and restructure them for better clarity 2019-08-07 19:45:27 +02:00
CONTRIBUTING.md Update StackBlitz projects to the latest versions 2021-12-11 13:10:48 +01:00
DEVELOPER.md Release 3.0.0 2025-08-03 22:54:40 +02:00
LICENSE Include the LICENSE file in the published package 2019-11-10 17:58:24 +01:00
README.md Release 3.0.0 2025-08-03 22:54:40 +02:00
UPGRADING.md Convert to use signal input and output (#464) 2025-03-18 11:11:35 +01:00
angular.json Align TypeScript configuration with the new Angular CLI project 2025-06-02 18:58:12 +02:00
karma.conf.js Switch to karma-coverage 2021-05-30 18:03:58 +02:00
ng-package.json Make @fortawesome/fontawesome-svg-core a regular dependency 2024-05-20 22:09:49 +02:00
package.json Release 3.0.0 2025-08-03 22:54:40 +02:00
tsconfig.json Align TypeScript configuration with the new Angular CLI project 2025-06-02 18:58:12 +02:00
tsconfig.lib.json Align TypeScript configuration with the new Angular CLI project 2025-06-02 18:58:12 +02:00
tsconfig.lib.prod.json Distribute library using partial Ivy compilation mode 2021-07-23 17:46:00 +02:00
tsconfig.spec.json Align TypeScript configuration with the new Angular CLI project 2025-06-02 18:58:12 +02:00
yarn.lock Update docs and schema for Font Awesome 7 support 2025-07-31 11:08:10 +02:00

README.md

Official Javascript Component

angular-fontawesome

npm

Official Angular component for Font Awesome 5+

Installation

If you have FontAwesome Pro subscription, make sure to configure access before following the installation instructions.

Note: Pro+ Icons are only available in Kit Packages Along with a Pro+ Plan, you'll need to install a downloaded Kit package to use any of our Pro+ Icons — they are not available in any other packages. Read more.

Using ng add:

# See Compatibility table below to choose a correct version
$ ng add @fortawesome/angular-fontawesome@<version>

Using Yarn

$ yarn add @fortawesome/free-solid-svg-icons
# See Compatibility table below to choose a correct version
$ yarn add @fortawesome/angular-fontawesome@<version>

Using NPM

$ npm install @fortawesome/free-solid-svg-icons
# See Compatibility table below to choose a correct version
$ npm install @fortawesome/angular-fontawesome@<version>

Compatibility table

@fortawesome/angular-fontawesome Angular Font Awesome
3.x 20.x 5.x && 6.x && 7.x
2.x 20.x 5.x && 6.x
1.x 19.x 5.x && 6.x

See the compatibility page for older versions.

Usage

To get up and running using Font Awesome with Angular follow the below steps:

  1. Add FontAwesomeModule to the imports and tie the icon to the property in your component src/app/app.component.ts:

    import { Component } from '@angular/core';
    import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
    import { faCoffee } from '@fortawesome/free-solid-svg-icons';
    
    // Import from Kit Packages (Pro+ Icons)
    // import {faCloud} from "@awesome.me/kit-<KIT_ID>/icons/slab/regular";
    
    
    @Component({
      selector: 'app-root',
      imports: [FontAwesomeModule], // alternatively, individual components can be imported
      templateUrl: './app.component.html'
    })
    export class AppComponent {
      faCoffee = faCoffee;
    }
    
  2. Use the icon in the template src/app/app.component.html:

    <fa-icon [icon]="faCoffee" />
    

Documentation

Examples

Stackblitz

Here's a StackBlitz Starter Sample on how to display Solid, Regular, and Brand icons using the Icon Library.

Demo application

You can find examples in the projects/demo directory. You can follow the docs to run the demo app on your own machine.

Contributing

angular-fontawesome is a product of the community, you can take a look at the developer docs to find about more on how to contribute back to the project.

Contributors

The following contributors have either helped to start this project, have contributed code, are actively maintaining it (including documentation), or in other ways being awesome contributors to this project. We'd like to take a moment to recognize them.

devoto13 zeevkatz scttcper DavidePastore donmckenna paustint mzellho elebitzero mcenkar SiddAjmera stephaniepurvis loicgasser damienwebdev ronniebarker bhanuhiteshi MrSuttonmann ej2 peterblazejewicz arjenbrandenburgh athisun madebyjeffrey benjamincharity NayeBeckham Nosfistis bleistift-zwei igorls jasonlundien Font Awesome Team pankajparkar medbenmakhlouf Stoffel-KT Ionaru

If we've missed someone (which is quite likely) submit a Pull Request to us and we'll get it resolved.