Quickstart - Svelte Shields

Svelte Shields is a collection of Shields badges for Svelte Runes.

Installation #

# install svelte 5
npx sv create my-project
# install svelte-shields
pnpm i -D svelte-shields

Basic usage #

NPM version of svelte-shields
<script lang="ts">
  import { NpmVersion, type NpmVersionPropsType } from 'svelte-shields';

  const basic: NpmVersionPropsType = {
    packageName: 'svelte-shields',
    logo: 'svelte',
    label: 'Svelte Shields'
  };
</script>

<NpmVersion {...basic} />