polymer_fontawesome 0.0.1 polymer_fontawesome: ^0.0.1 copied to clipboard
Font awesome icons to use in Polymer 1-2 components.
Font Awesome as a PolymerElements/iron-iconset-svg component.
Set Up pubsec.yaml #
# bower
bower install fontawesome-iconset
# npm
npm install fontawesome-iconset
Use #
Be sure you import next items from your repositories something like
Link your custom component alongside with other Polymer dependencies (in index.html for instance)
<link rel="import" href="packages/polymer_fontawesome/fa-all.html">
Use the iconset
<iron-icon icon="fa:line-chart"></iron-icon>
You also can refer to an specific category of icons:
<link rel="import" href="packages/polymer_fontawesome/fa-gender.html">
And use it like this:
<iron-icon icon="fa-gender:venus"></iron-icon>
Update #
To update to the latest version of FontAwesome, just install node modules and run "update"
npm install
npm run update
Soon there will be a production script to export only the icons to be used (like the original font-awesome-polymer-icons-generator but in node).