@fortawesome/free-regular-svg-icons#far TypeScript Examples

The following examples show how to use @fortawesome/free-regular-svg-icons#far. 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: App.tsx    From TabMerger with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Icons listed here no longer need to be imported in other files.
 * Instead a string can be passed to the `icon` property.
 * By default, the icons are all "solid", which is why `far` is also added ...
 * ... simply do `icon={["far", "icon-name"]}` to use the "regular" version of "icon-name"
 * @see https://fontawesome.com/v5.15/how-to-use/on-the-web/using-with/react#using
 */
library.add(
  far,
  faCog,
  faSearch,
  faTimes,
  faWindowRestore,
  faEllipsisV,
  faWindowMaximize,
  faTimesCircle,
  faStar,
  faMask,
  faExclamationCircle,
  faCopy,
  faAngleDown,
  faAngleUp,
  faCheckCircle,
  faUpload
);
Example #2
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 #3
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 #4
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 #5
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 #6
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);