0.2.2 • Published 3 years ago

@quentincaffeino/manypixels-svelte v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@quentincaffeino/manypixels-svelte

All the credit goes to awesome ManyPixels team for creating these awesome illistrations.

Usage

Svelte components export these props:

  • class - Add class to svg element
  • size - This would set width and height of an image
  • width
  • height

Component

<script>
  import Fortnite from "@quentincaffeino/manypixels-svelte/src/flatline/Fortnite.svelte";
</script>

<Fortnite />

Lazy loading

<script>
  import { onMount } from "svelte";

  let component = null;

  onMount(async () => {
    try {
      component = (
        await import(
          "@quentincaffeino/manypixels-svelte/src/flatline/Fortnite.svelte"
        )
      ).default;
    } catch (e) {
      console.error(e);
    }
  });
</script>

<svelte:component this={component} />

Licensing

For information about licensing for ManyPixels Illustrations see this page.

Code is published under MIT license.