0.19.0 • Published 7 months ago

svelte-gitlab-icons v0.19.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

svelte-gitlab-icons

NPM

GitLab SVG icons as Svelte components.

Try it in the Svelte REPL.


Installation

# Yarn
yarn add -D svelte-gitlab-icons

# npm
npm i -D svelte-gitlab-icons

# pnpm
pnpm i -D svelte-gitlab-icons

Usage

Basic

<script>
  import { Api, Fire, MergeRequestOpen } from "svelte-gitlab-icons";
</script>

<Api />
<Fire />
<MergeRequestOpen />

Refer to ICON_INDEX.md for a list of supported icons.

Direct import

Directly import an icon for faster compiling during development.

<script>
  import Api from "svelte-gitlab-icons/lib/Api.svelte";
</script>

Rendering icons using svelte:component

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

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

Changelog

License

MIT

0.19.0

7 months ago

0.16.0

11 months ago

0.17.0

10 months ago

0.18.0

9 months ago

0.13.0

1 year ago

0.14.0

1 year ago

0.15.0

1 year ago

0.11.0

1 year ago

0.12.0

1 year ago

0.10.0

2 years ago

0.9.0

2 years ago

0.8.0

2 years ago

0.5.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago