🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@beyonk/svelte-awesome

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@beyonk/svelte-awesome

Font Awesome component for Svelte JS, using inline SVG

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

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

  import Icon from 'svelte-awesome/src/components/Icon.html'
	import beer from 'svelte-awesome/src/icons/beer'

	export default {
    data () {
      return {
        beer
      }
    },

		components: {
			Icon
		}
	}
<!-- basic -->
<Icon data="{beer}"></Icon>

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

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

Keywords

font-awesome

FAQs

Package last updated on 18 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts