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, andfetchPriorityforward native attributes — no custom IntersectionObserver. - LCP / hero:
loading="eager"+fetchPriority="high". - Below-the-fold:
loading="lazy"(and responsivesrcsetwhen available).
Accessibility
- Pass meaningful
alt; usealt=""only for decorative images. - Load failures replace the image with a visible
role="alert"message. - Changing
srcclears a prior error so the new image can load.