71.0.9 • Published 2 years ago

svelte-gestalt-icons v71.0.9

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

svelte-gestalt-icons

NPM

Pinterest Gestalt SVG icons as Svelte components.

Try it in the Svelte REPL.


Installation

# Yarn
yarn add -D svelte-gestalt-icons

# npm
npm i -D svelte-gestalt-icons

# pnpm
pnpm i -D svelte-gestalt-icons

Usage

Basic

<script>
  import { Add, Sound, Tag, History } from "svelte-gestalt-icons";
</script>

<Add />
<Sound />
<Tag />
<History />

See ICON_INDEX.md for a list of supported icons.

Direct import (recommended)

Import the icon directly for faster compiling during development.

<script>
  import Add from "svelte-gestalt-icons/lib/Add.svelte";
</script>

Using svelte:component

<script>
  import * as icons from "svelte-gestalt-icons";
</script>

{#each Object.entries(icons) as [icon, component]}
  <div>
    <svelte:component this={component} />
    {icon}
  </div>
{/each}

TypeScript

Svelte version 3.31 or greater is required to use this library with TypeScript.

Changelog

License

MIT

71.0.9

2 years ago

62.0.6

2 years ago

40.0.2

2 years ago

40.0.1

2 years ago

40.0.0

2 years ago

22.0.2

3 years ago

22.0.1

3 years ago

22.0.0

3 years ago

21.0.2

3 years ago

21.0.1

3 years ago

19.2.2

3 years ago

17.5.3

3 years ago

17.1.0

3 years ago

16.6.1

3 years ago

14.30.3

3 years ago

14.1.0

4 years ago

11.26.1

4 years ago

11.5.0

4 years ago

5.30.2

4 years ago

3.0.2

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago