0.0.4 • Published 11 months ago

@devicon/svelte v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

Here’s the documentation adapted for @devicon/svelte:


@devicon/svelte

Svelte components for the SVG icons of the devicon project.

Installation

yarn add @devicon/svelte
# OR
npm install @devicon/svelte
# OR
pnpm add @devicon/svelte

Usage

Importing and Using Icons

Icons can be imported and used as Svelte components.

<script>
  import ReactOriginalIcon from "@devicon/svelte/react/original/ReactOriginalIcon.svelte";
  // or (not recommended, as it can significantly increase bundle size)
  import { GithubOriginalIcon, GithubOriginalWordmarkIcon } from "@devicon/svelte";
</script>

<GithubOriginalWordmarkIcon />
<GithubOriginalIcon size="2em" />
<ReactOriginalIcon class="my-class" />

With Color

Icons that support single-color customization can be recolored like this:

<script>
  import DeviconPlainIcon from "@devicon/svelte/devicon/plain/DeviconPlainIcon.svelte";
</script>

<DeviconPlainIcon color="white" />
0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago