0.15.0 • Published 10 months ago

svelte-iconoir v0.15.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

svelte-iconoir

NPM

Iconoir SVG icons as Svelte components.

Try it in the Svelte REPL.


Installation

# Yarn
yarn add -D svelte-iconoir

# npm
npm i -D svelte-iconoir

# pnpm
pnpm i -D svelte-iconoir

Usage

Basic

<script>
  import { Activity, BubbleStar, Camera } from "svelte-iconoir";
</script>

<Activity />
<BubbleStar />
<Camera />

Refer to ICON_INDEX.md for a list of supported icons.

Direct import

Use the direct import for faster compiling during development.

Note: even if using base imports, unused imports are still tree shakeable by application bundlers like Rollup or webpack.

<script>
  import AddPage from "svelte-iconoir/lib/AddPage.svelte";
</script>

Using svelte:component

<script>
  import * as icons from "svelte-iconoir";
</script>

{#each Object.entries(icons) as [icon, component]}
  <div>
    <svelte:component this={component} />
    {icon}
  </div>
{/each}

TypeScript

Svelte version 3.31 or greater is required to use this library with TypeScript.

Changelog

License

MIT

0.14.0

10 months ago

0.15.0

10 months ago

0.10.0

1 year ago

0.11.0

1 year ago

0.9.0

1 year ago

0.12.0

1 year ago

0.13.0

1 year ago

0.8.0

1 year ago

0.5.0

2 years ago

0.7.0

1 year ago

0.6.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

3 years ago