@urami/svelte
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

@urami/svelte

Optimized image component for Svelte.

Documentation

Usage

<script>
  import Image from '@urami/svelte'
</script>

<Image
  src="https://demo.rayriffy.com/tom-scott.jpg"
  width={801}
  height={801}
  alt="Tom Scott"
  class="rounded-xl shadow-md"
/>

Props

Name Type Default Required Description
src string - Source of the image
width number - Width of the image
height number - Height of the image (Specify this will results in less layout shift)
quality number 75 Quality of the image
loader fn defaultLoader Loader function, please refer to Loader

/@urami/svelte/

    Package Sidebar

    Install

    npm i @urami/svelte

    Homepage

    urami.dev/

    Weekly Downloads

    5

    Version

    1.1.1

    License

    none

    Unpacked Size

    7.28 kB

    Total Files

    9

    Last publish

    Collaborators

    • rayriffy