Getting Started - Svelte Ionicons v1

Requirements #

You need to use the following:

Installation #

Install Svelte and Svelte Ionicons:

Basic Usage #

In a svelte file:

aria-label #

Use ariaLabel props to edit the aria-label.

IDE support #

If you are using an LSP-compatible editor, such as VSCode, Atom, Sublime Text, or Neovim, hovering over a component name will display a documentation link, features, props, events, etc.

Faster compiling #

If you need only a few icons from this library in your Svelte app, import them directly. This can optimize compilation speed and improve performance by reducing the amount of code processed during compilation.

Passing down other attributes #

Since all icons have "...$$restProps", you can pass other attibutes as well.

Using svelte:component #

Using onMount #

Import all #

Use import * as Icon from 'svelte-ionicons.