@sveltevk/icons

SVG icons, provided as a Svelte components.

Usage no npm install needed!

<script type="module">
  import sveltevkIcons from 'https://cdn.skypack.dev/@sveltevk/icons';
</script>

README

Svelte VK Icons

SVG icons, provided as a Svelte components.

Based on VKCOM/icons

Setup

npm i @sveltevk/icons

Example

REPL

<script>
  import Icon24Cancel from '@sveltevk/icons/dist/24/cancel';
</script>

<Icon24Cancel />

or base import:

<script>
  import { Icon24LogoVk } from '@sveltevk/icons';
</script>

<Icon24LogoVk width={20} height={20} color="#4bb34b" />

Note: Even if using the base import method, a modern application bundler like Rollup or webpack should tree shake unused imports.