Socket
Book a DemoInstallSign in
Socket

@artemis69/iconic-svelte

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@artemis69/iconic-svelte

[Iconic Icons](https://github.com/Make-Lemonade/iconicicons)

latest
npmnpm
Version
1.5.0-next.2
Version published
Maintainers
1
Created
Source

Iconic Icons for Svelte

Iconic Icons

Install

npm install @artemis69/iconic-svelte

Usage

Import main component Icon and pass icons as props:

<script>
  import { Icon, HeartIcon } from '@artemis69/iconic-svelte'
</script>

<Icon icon={HeartIcon} width="36" height="36"/>

Icons use an upper camel case naming convention and are always suffixed with the word Icon.

Benefits

You can listen to events on Icon:

<script>
  import { Icon, HeartIcon } from '@artemis69/iconic-svelte'
</script>

<Icon icon={HeartIcon} on:click={() => alert('Alert here!')}/>

Keywords

svelte

FAQs

Package last updated on 24 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts