bit Bheadless

Avatar

An image with a graceful fallback, styled entirely with Tailwind utilities.

Implementation: CSS Tailwind

Basic

Compose BitBhAvatarImage with a BitBhAvatarFallback. The image only shows once it loads.

CT

Fallback (broken image)

On load failure the fallback replaces the broken-image icon. Here the source is intentionally invalid.

JD

Delayed fallback

DelayMs waits before showing the fallback, avoiding a flash for fast-loading images.

Sizes and shapes

Size and shape are pure utilities โ€” swap h-*/w-* and the rounding to taste.

AB CD EF
An unhandled error has occurred. Reload ๐Ÿ—™