Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@dimfeld/svelte-awesome

RobBrazier5MIT2.3.1

Font Awesome component for Svelte JS, using inline SVG

font-awesome, awesome, svelte, svg

readme

Svelte-Awesome

Built with SemaphoreCI npm Code Climate PRs Welcome

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

Svelte-Awesome supports Font-Awesome v4.7.0 (icons inbuilt) and v5 (via @fortawesome npm packages)

A demo is available here

Installation

NPM

$ npm install --save svelte-awesome

Usage

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

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

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

<!-- FontAwesome v5 Icons!! -->
<Icon data={faThumbsUp}></Icon>

<script>
  import { beer, refresh, comment, codeFork, camera, ban } from 'svelte-awesome/icons';
  import { faThumbsUp } from '@fortawesome/free-regular-svg-icons';
</script>

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Generated by auto-changelog.

v2.2.0 - 2019-08-22

Commits

  • Add support for custom classes and styles 29e38b0
  • Fix fontawesome v5 example 20e52ec
  • Fix label example a649953

v2.1.0 - 2019-08-20

Merged

  • Add FontAwesome v5 Support #487
  • Add Semaphore v2 Pipeline #486

Commits

  • fix package-lock.json e9e9e30
  • add publish promotion f515ed9
  • rename semaphore.yaml to semaphore.yml 32cf4ef
  • rename semaphore.yaml to semaphore.yml cb0cfd5
  • add initial semaphore v3 pipeline e3b914b
  • split pipeline into separate blocks b339568
  • add npm publish on promote a3f8240
  • specify node version d3431b8
  • add node version to each block cc56aa9
  • add gh-pages to publish step 804d8b5
  • add version and agent to pipeline 6faf24a
  • specify node version 0781644
  • add sshkey for gh-pages publish 5a0483a
  • change promotion to be on push to master 662d899

v2.0.1 - 2019-08-19

Commits

  • remove unused eslint-plugin-jsx-a11y 1e40c5b
  • fix publish script - release -> gh-release eb55b8b

v2.0.0 - 2019-08-19

Merged

  • add svelte 3 support #434
  • build(deps-dev): bump rollup from 0.66.2 to 0.66.4 #306

Commits

  • fix deployment scripts and use recommended rollup.config.js 3bee01a
  • fix example and update rollup dependencies f70875e
  • update svelte, terser and eslint 844567d
  • update acorn dependency required for eslint 48b1389

v1.4.1 - 2018-09-28

Merged

  • build(example): fix example build #302
  • fix: guard when accessing refs onupdate() to prevent TypeError #301
  • build(deps-dev): bump rollup from 0.64.1 to 0.66.2 #295
  • build(deps-dev): bump husky from 0.14.3 to 1.0.1 #300
  • build(deps-dev): bump rollup-plugin-uglify from 4.0.0 to 5.0.2 #274

Commits

  • build(example): fix example build 4a37fbe
  • build: switch eslint-plugin-airbnb to eslint-plugin-airbnb-base 041e8bf
  • fix: guard when accessing refs onupdate() to prevent TypeError 9682f51
  • build: update husky commit checking config c188bd2
  • chore(lint): fix linting errors 0459440
  • docs: remove waffle badge from README eacb0f4

v1.4.0 - 2018-08-08

Merged

  • build(deps-dev): bump rollup from 0.62.0 to 0.63.4 #234
  • build(deps-dev): bump svelte from 2.8.1 to 2.9.1 #217
  • build(deps-dev): bump eslint-plugin-jsx-a11y from 6.0.3 to 6.1.0 #220
  • build(deps-dev): bump semantic-release from 15.6.0 to 15.6.3 #218
  • build(deps-dev): bump rollup-plugin-svelte from 4.1.0 to 4.2.1 #219
  • build(devDeps): bump eslint from 4.19.1 to 5.0.1 #213
  • build(devDeps): bump eslint-config-airbnb from 16.1.0 to 17.0.0 #212
  • build(devDeps): bump eslint-plugin-import from 2.12.0 to 2.13.0 #210
  • build(devDeps): bump @commitlint/prompt-cli from 6.1.3 to 7.0.0 #208
  • build(devDeps): bump @commitlint/config-conventional from 6.1.3 to 7.0.1 #207
  • build(devDeps): bump eslint-plugin-react from 7.9.1 to 7.10.0 #214
  • build(devDeps): bump rollup from 0.61.2 to 0.62.0 #215
  • build(devDeps): bump @commitlint/cli from 6.1.3 to 7.0.0 #201

Fixed

  • feat: add svelte property to package.json #244

Commits

  • docs(example): fix example build 2795c51

v1.3.0 - 2018-06-24

Merged

  • feat: add support for svelte 2 #205
  • build(devDeps): bump rollup from 0.57.1 to 0.61.2 #202
  • build: bump rollup-plugin-commonjs from 9.1.0 to 9.1.3 #183
  • build: bump eslint-plugin-react from 7.7.0 to 7.8.2 #193
  • build: bump semantic-release from 15.1.5 to 15.4.1 #195
  • build: bump eslint-plugin-import from 2.10.0 to 2.11.0 #161
  • build: bump lodash from 4.17.5 to 4.17.10 #176
  • build: bump babel-core from 6.26.0 to 6.26.3 #181
  • build: bump rollup-plugin-svelte from 4.0.0 to 4.1.0 #154
  • build: bump eslint-plugin-html from 4.0.2 to 4.0.3 #159
  • build: bump rollup-plugin-node-resolve from 3.0.3 to 3.3.0 #144
  • build: bump semantic-release from 12.4.1 to 15.1.5 #156
  • build: bump eslint-plugin-import from 2.9.0 to 2.10.0 #153
  • build: bump eslint from 4.18.1 to 4.19.1 #147
  • build: bump rollup from 0.56.3 to 0.57.1 #143
  • build: bump rollup-plugin-commonjs from 8.3.0 to 9.1.0 #134
  • build: bump @commitlint/prompt-cli from 6.1.2 to 6.1.3 #123
  • build: bump @commitlint/cli from 6.1.2 to 6.1.3 #122
  • build: bump @commitlint/config-conventional from 6.1.2 to 6.1.3 #120
  • build: bump svelte from 1.55.0 to 1.56.0 #119
  • build: bump rollup from 0.56.2 to 0.56.3 #118
  • build: bump @commitlint/cli from 6.1.0 to 6.1.2 #117
  • build: bump @commitlint/config-conventional from 6.1.0 to 6.1.2 #116
  • build: bump @commitlint/prompt-cli from 6.1.0 to 6.1.2 #115
  • build: bump eslint-plugin-import from 2.8.0 to 2.9.0 #114
  • build: bump eslint-plugin-react from 7.6.1 to 7.7.0 #112
  • build: bump eslint from 4.18.0 to 4.18.1 #113
  • build: bump rollup from 0.56.1 to 0.56.2 #111
  • build: bump eslint from 4.17.0 to 4.18.0 #110
  • build: bump rollup from 0.56.0 to 0.56.1 #109
  • build: bump rollup-plugin-buble from 0.18.0 to 0.19.2 #105
  • build: Bump semantic-release from 11.0.2 to 12.4.1 #87
  • build: Bump @commitlint/cli from 5.2.8 to 6.1.0 #98
  • build: Bump @commitlint/prompt-cli from 5.2.8 to 6.1.0 #101
  • build: bump rollup from 0.53.3 to 0.56.0 #107

v1.2.2 - 2018-02-15

Merged

  • fix(component): fix Icon not defined when compiling with svelte 1.55 #108
  • build: Bump svelte from 1.50.1 to 1.55.0 #104
  • build: Bump @commitlint/config-conventional from 5.2.3 to 6.1.0 #97
  • build: Bump lodash from 4.17.4 to 4.17.5 #96
  • build: Bump eslint from 4.14.0 to 4.17.0 #99
  • build: Bump eslint-plugin-html from 4.0.1 to 4.0.2 #83
  • chore(dependencies): Bump rollup-plugin-uglify from 2.0.1 to 3.0.0 #81
  • chore(dependencies): Bump rollup-plugin-node-resolve from 3.0.0 to 3.0.2 #69
  • chore(dependencies): Bump @commitlint/prompt-cli from 5.2.6 to 5.2.8 #54
  • chore(dependencies): Bump rollup from 0.53.0 to 0.53.3 #60
  • chore(dependencies): Bump svelte from 1.49.1 to 1.50.1 #59
  • chore(dependencies): Bump poi from 9.6.4 to 9.6.9 #57
  • chore(dependencies): Bump @commitlint/cli from 5.2.6 to 5.2.8 #53

Commits

  • fix(component): fix Icon not defined when compiling with svelte 1.55 a26e34e

v1.2.1 - 2017-12-25

Merged

  • build: fix semantic-release condition verification #51
  • build: fix semantic-release condition verification #50
  • fix(icon): fix computed property scope error from latest svelte version #49
  • Bump semantic-release from 8.2.0 to 11.0.2 #40
  • chore(dependencies): Bump eslint from 4.13.1 to 4.14.0 #48
  • chore(dependencies): Bump @commitlint/cli from 5.2.5 to 5.2.6 #44
  • chore(dependencies): Bump poi from 9.6.2 to 9.6.4 #47
  • chore(dependencies): Bump rollup from 0.52.3 to 0.53.0 #45
  • chore(dependencies): Bump @commitlint/prompt-cli from 5.2.5 to 5.2.6 #42
  • Bump poi from 9.6.1 to 9.6.2 #41
  • Bump rollup from 0.52.1 to 0.52.3 #38
  • Bump rollup-plugin-svelte from 3.3.0 to 4.0.0 #34
  • Add svelte to dev dependencies #39
  • refactor(eslint): configure and fix code for eslint airbnb prefix #37
  • Bump poi from 9.6.0 to 9.6.1 #33
  • Bump poi from 9.5.11 to 9.6.0 #32
  • Bump poi from 9.5.9 to 9.5.11 #31
  • Bump @commitlint/cli from 5.2.3 to 5.2.5 #28
  • Bump @commitlint/prompt-cli from 5.2.0 to 5.2.5 #30
  • Bump rollup-plugin-svelte from 3.2.0 to 3.3.0 #29
  • Bump poi from 9.5.7 to 9.5.9 #27
  • Bump @commitlint/cli from 5.2.0 to 5.2.3 #22
  • Bump poi from 9.5.6 to 9.5.7 #26
  • Bump @commitlint/config-conventional from 5.1.3 to 5.2.3 #23
  • Bump poi from 9.5.5 to 9.5.6 #24
  • Bump rollup from 0.52.0 to 0.52.1 #25

Commits

  • refactor(eslint): configure and fix code for eslint airbnb prefix 2a3dafe
  • build: fix semantic-release condition verification 8056279
  • build(rollup): remove unused rollup-plugin-babel dependency 02a3307
  • build(svelte): add svelte to dev dependencies 9ca013b
  • fix(icon): fix computed property scope error from latest svelte version fe8a210
  • build: fix semantic-release condition verification 36135a3

v1.2.0 - 2017-12-04

Merged

  • feat(css): add css and animations #21

Commits

  • feat(css): add css and animations 49367b4
  • refactor(icon): remove unneeded klass from Icon component cd579ec

v1.1.1 - 2017-12-04

Merged

  • fix(raw): fix raw icon type #19
  • Bump rollup-plugin-svelte from 3.1.0 to 3.2.0 #18
  • Bump @commitlint/prompt-cli from 5.1.2 to 5.2.0 #16
  • Bump @commitlint/cli from 5.1.1 to 5.2.0 #17
  • Bump rollup from 0.51.8 to 0.52.0 #15
  • Bump poi from 9.5.4 to 9.5.5 #14

Commits

  • fix(raw): fix raw icon type 6e3f116

v1.1.0 - 2017-11-29

Commits

  • feat(icon): dynamically updated icons ccda8d6

v1.0.3 - 2017-11-29

Commits

  • fix(release): redo release 1430a86
  • fix(release): redo release d3f892b

v1.0.2 - 2017-11-29

Merged

  • fix released artifact #13

Commits

  • fix(release): add dist to released versions e71bd39
  • fix(peer): remove svelte as a peer dependency 687c18b

v1.0.1 - 2017-11-29

Merged

  • fix(polygon): fix svg polygon rendering #11
  • build(linting): switch to xo for linting #10
  • refactor(icons): optimise icon generation #9

Commits

  • refactor(icons): optimise icon generation 17c3ea4
  • build(linting): switch to xo for linting ed033b3
  • fix(polygon): fix svg polygon rendering 1d5866c

v1.0.0 - 2017-11-29

Commits

  • feat(init): initial semantic commit 56f999c
  • fix(release): fix verifyConditions 772d8f7