Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fa-icon-element

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fa-icon-element

Vanilla custom element that displays FontAwesome icons

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

fa-icon Custom Element

npm version

FontAwesome Version: v4.7.0

Vanilla custom element that displays FontAwesome icons in your page.


Installation

To install, run:

npm i fa-icon-element

Then, either import the file directly with:

<script src="path/to/node_modules/fa-icon-element/src/fa-icon.js" defer></script>

or, include it in your webpack (or similar) build:

import "fa-icon-element";

Usage

Once installed, simply use with:

<fa-icon name="fa-plus"></fa-icon>

Where the name attribute is any valid FontAwesome icon name. See here for a list of icons.

Known Issues, Potential Gotchas

  • The FontAwesome font face is loaded from the FontAwesome CDN. It is currently not possible to load a local instance of the FontAwesome set. Please open an issue if you need this feature.
  • Due to a potential bug, the @font-face for FontAwesome is elevated to the global CSS scope. See this article by Rob Dodson for more information.

Font Awesome by Dave Gandy - fontawesome.io (License Info)

Keywords

FAQs

Package last updated on 13 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc