A simple component for Font Awesome on Riot.js.
$ npm install riot-fa
<fa icon="twitter" />
That's it.
<!doctype html>
<html>
<head>
<!-- Loads font separately -->
<style>@font-face { font-family: FontAwesome; src: url('fa.woff') format('woff') }</style>
</head>
<body>
<fa icon="twitter" />
<script src="riot.js"></script>
<!-- Loads Riot FA -->
<script src="riot-fa.js"></script>
<script> riot.mount('*') </script>
</body>
</html>
<!doctype html>
<html>
<head>
<!-- Loads font separately -->
<style>@font-face { font-family: FontAwesome; src: url('fa.woff') format('woff') }</style>
</head>
<body>
<fa icon="twitter" />
<script src="bundle.js"></script>
</body>
</html>
import riot from 'riot'
import 'riot-fa'
riot.mount('*')