@fortawesome/free-solid-svg-icons#fas TypeScript Examples

The following examples show how to use @fortawesome/free-solid-svg-icons#fas. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: manager.ts    From obsidian-admonition with MIT License 6 votes vote down vote up
FONT_AWESOME_MAP = new Map(
        [Object.values(fas), Object.values(far), Object.values(fab)]
            .flat()
            .map((i: IconDefinition) => {
                return [
                    i.iconName,
                    {
                        name: i.iconName,
                        type: "font-awesome" as "font-awesome"
                    }
                ];
            })
    );
Example #2
Source File: SecondSection.tsx    From website with MIT License 5 votes vote down vote up
library.add(fab,fas);
Example #3
Source File: main.ts    From cashcash-desktop with MIT License 5 votes vote down vote up
library.add(fas);
Example #4
Source File: Icon.tsx    From crust-apps with Apache License 2.0 5 votes vote down vote up
// one-time init of FA libraries
library.add(far, fas);
Example #5
Source File: index.ts    From next-core with GNU General Public License v3.0 5 votes vote down vote up
export function initializeLibrary(): void {
  library.add(fas, fab);
}
Example #6
Source File: app.module.ts    From ngx-htaccess-generator with MIT License 5 votes vote down vote up
constructor(private library: FaIconLibrary) {
    library.addIconPacks(fas, far);
  }
Example #7
Source File: Icon.tsx    From subscan-multisig-react with Apache License 2.0 5 votes vote down vote up
// one-time init of FA libraries
library.add(fas);
Example #8
Source File: manager.ts    From obsidian-admonition with MIT License 5 votes vote down vote up
/** Load Font Awesome Library */
library.add(fas, far, fab, faCopy);
Example #9
Source File: App.tsx    From flect-chime-sdk-demo with Apache License 2.0 5 votes vote down vote up
library.add(fas, far, fab);