Draw font-awesome svg with snabbdom.
npm install snabbdom-font-awesome
import {fa} from 'snabbdom-font-awesome';
const vnode = h('button.btn', [
fa.heart(),
'Like'
]);
.btn svg {
width: 20px;
height: 20px;
fill: white;
}
- Font-Awesome font: SIL OFL 1.1
- snabbdom-font-awesome: MIT