Installation
Svelte Package

Svelte Package Installation

To get started with the HugeIcons Svelte package, you need to install it from npm or yarn.

Installation

First, you have to activate your license and get your npm token, check the activation guide for more information.

After that you can install the @hugeicons/svelte package:

npm i @hugeicons/svelte

Example

Here's a quick example of how to use an icon in a Svelte project:

<script>
	import {Home01Icon} from '@hugeicons/svelte';
</script>
 
<div>
  <Home01Icon
    variant={"stroke"}
    style={"rounded"}
    size={48}
    color={"#b60fa8"}
  />
</div>