Getting Started - Svelte Ant Design Icons v1

GitHub Sponsor - shinokada NPM version of svelte-ant-design-icons github License NPM dw Downloads - svelte-ant-design-icons

Requirements #

Installation #

Install Svelte and Svelte Ant Design Icons:

Basic Usage #

In a svelte file:

A11y friendly #

Use title, desc, and ariaLabel props to make your icons accessible.

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-ant-design-icons.