Skip to content

QuinsZouls/lit-fontawesome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lit-fontawesome

Icons of Fontawesome for Polymer 3 and LitElement

Installation

Use the package manager npm to install Lit-fontawesome.

npm install lit-fontawesome

In the HTML file, link css of Lit-fontawesome

<link rel="stylesheet" href="node_modules/lit-fontawesome/css/font.css">

Usage with LitElement

import { LitElement, html} from 'lit-element';
import Fontawesome from 'lit-fontawesome';

class SomeClass extends LitElement {
 static get styles() {
    return [ Fontawesome ];
 }
 render() {
    return html`
      <div>
         <i class="fas fa-address-card"></i>
      </div>
    `;
  }
}

customElements.define('custom-component', SomeClass );

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Icons of Fontawesome for Polymer 3 and LitElement

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published