lit-fontawesome
v0.1.3
Published
Icons of Fontawesome for Polymer 3 and LitElement
Downloads
588
Maintainers
Readme
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.