Fundamentals
Components
Code Utilities
Demo
BcImage
Description
The BcImage component is a wrapper for the standard HTML tag with built-in error handling. If the primary image fails to load, it automatically falls back to a specified fallback image.
Sample
Parameters
Src
string?
The primary image source URL.
AltText
string?
Alternative text displayed if the image cannot be loaded.
FallbackSrc
string?
The fallback image source URL if the primary image fails to load.