Awesome SVG icon component for Svelte JS, built with Font Awesome icons. Based on Justineo/vue-awesome
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
example
src
.editorconfig
.eslintignore
.eslintrc
.gitignore
.npmignore
LICENSE
README.md
package-lock.json
package.json
rollup.config.js

README.md

Svelte-Awesome

Build Status npm Code Climate Code Climate semantic-release PRs Welcome

Awesome SVG icon component for Svelte JS, built with Font Awesome icons. Based on Justineo/vue-awesome

Svelte-Awesome is built upon Font-Awesome v4.7.0

A demo is available here

Installation

NPM

$ npm install --save svelte-awesome

Usage

<!-- basic -->
<Icon name="beer"></Icon>

<!-- with options -->
<Icon name="refresh" scale="2"></Icon>
<Icon name="comment" flip="horizontal"></Icon>
<Icon name="code-fork" label="Forked Repository"></Icon>

<!-- stacked icons [WIP] -->
<Icon label="No Photos">
  <Icon name="camera"></Icon>
  <Icon name="ban" scale="2" class="alert"></Icon>
</Icon>