@shayu-components/autosize-img

Img component that hardcodes height and width for a correctly sized placeholder during page hold. Supports both src="" as local file and from URL.

Usage no npm install needed!

<script type="module">
  import shayuComponentsAutosizeImg from 'https://cdn.skypack.dev/@shayu-components/autosize-img';
</script>

README

@shayu-components/autosize-img

Img component that hardcodes height and width for a correctly sized placeholder during page hold. Supports both src="" as local file and from URL.

License, donations

GPL-3.0. If you want to support my work, you can:
Donate using Liberapay

Example

to be added

Changelog

v0.0.1 (Dec 7th, 2020)

  • publish as module