ArtificialSenseDocs

Docs / Components

SenseImageComponent

Accessible <img> wrapper with native loading/srcset passthroughs and a localized load-error fallback from @artificialsenselabs/ui.

Live demo: run nx serve showcase and open /components/image (port 4202).

Overview

Category: Display. Selector: sense-image. Import: import { SenseImageComponent } from '@artificialsenselabs/ui';

Loading & LCP

  • Inputs loading, srcset, sizes, and fetchPriority forward native attributes — no custom IntersectionObserver.
  • LCP / hero: loading="eager" + fetchPriority="high".
  • Below-the-fold: loading="lazy" (and responsive srcset when available).

Accessibility

  • Pass meaningful alt; use alt="" only for decorative images.
  • Load failures replace the image with a visible role="alert" message.
  • Changing src clears a prior error so the new image can load.