Vebego Component Library


<picture class="atm-image ">
    <source srcset="" media="(min-width: 1024px)">
    <source srcset="" media="(min-width: 768px)">
    <img class="" src="" alt="" loading="lazy">
<picture class="atm-image {{modifier}}">
    {{#each sources}}
        <source srcset="{{src}}" media="{{mediaQuery}}">
    <img class="{{imageModifier}}" src="{{src}}" alt="{{alt}}" {{#if lazy}}loading="lazy"{{/if}}>
  "modifier": "",
  "imageModifier": "",
  "lazy": true,
  "alt": "",
  "src": "",
  "sources": [
      "mediaQuery": "(min-width: 1024px)",
      "src": ""
      "mediaQuery": "(min-width: 768px)",
      "src": ""
  • Content:
        @apply block;
            @apply block w-auto max-w-full;
  • URL: /components/raw/image/image.css
  • Filesystem Path: src\components\02-atoms\image\image.css
  • Size: 107 Bytes

Lazy loading

By setting lazy is true on the context data the image will be lazy loaded when it is shown beneath the fold on initial load.

Response images

By setting the sources on the context data different images can be shown for different screen sizes by providing media queries. Set the src of the image for the smallest screen size. The sources should be ordered from largest screen size to smallest.