Tracks whether the image inside a wrapper is loading, loaded or failed, whatever component drew it, so a card or a gallery can swap a broken image for a fallback.

pnpm add @behivetech/hooks.use-image-status

You are viewing Use Image Status v0.1.0, snapshotted 2026-11-09. The latest is v0.1.1. Go to the latest →

Changelog up to v0.1.0

v0.1.0

Minor Changes

  • 48c9e6b: New hook package: useImageStatus tracks whether the image inside a wrapper is loading, loaded or failed, and keeps the failed image's alt text. It replaces the copies in molecules.image-card and organisms.gallery.