Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

sveltevk/icons

Repository files navigation

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.