0.0.2 • Published 1 year ago

@magic-modules/picture v0.0.2

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
1 year ago

@magic-modules/picture

this is the @magic-modules Picture component.

wraps <picture> to load modern image formats with fallbacks to jpg|png|gif.

NPM version Linux Build Status Windows Build Status Coverage Status Greenkeeper badge Known Vulnerabilities

install:

npm install --save-exact @magic-modules/picture

usage:

Markdown:
<Picture name="image" ext="jpg"></Picture>
Javascript:

below is the javascript usage with the default arguments

export const View = () => {
  Picture({
    name: 'image', // required!
    ext: 'jpg',
    avif: true,
  })
}

changelog

0.0.1

first release.

0.0.2
  • update dependencies
  • lazy is a boolean now.
  • swc will now correctly prefill WEB_ROOT for img src and source srcset
0.0.3 - unreleased

...