Framework-agnostic Web Components vector icons for modern web applications. Design of the icons by Cole Bemis.
No framework | Angular | React | Vue |
---|---|---|---|
Demo | Demo | Demo | Demo |
1. Install the package
npm install featherish
2. Import icons you need
import 'featherish/icons/github';
import 'featherish/icons/gitlab';
import 'featherish/icons/heart';
import 'featherish/icons/moon';
3. Use
<i-github></i-github>
<i-gitlab></i-gitlab>
<i-heart></i-heart>
<i-moon></i-moon>
Note that you might need to add a polyfill. For that, npm install @webcomponents/custom-elements
and import the polyfill before importing the icons.
import '@webcomponents/custom-elements/src/native-shim';
Icons can be customised with any CSS property that you can apply on a SVG element.
<i-heart class="big fill-red"></i-heart>
.big {
height: 50px;
width: 50px;
}
.fill-red {
fill: red;
}
Refer to the table below for the list of all available icons.
...
MIT Β© Michael Bazos