BcSvgImage
Description
The BcSvgImage component is a flexible SVG renderer that loads and displays an SVG image. It includes error handling, a fallback source, dynamic styling, and the option to remove default fills and strokes.
Sample
Parameters
Src
string?
The primary source URL of the SVG image.
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.
Size
string?
Sets the size of the SVG image.
Color
string?
Defines the color of the SVG (fill and stroke).
RemoveFill
bool
If true, removes all fill attributes from the SVG to allow color customization.
OnClick
EventCallback < MouseEventArgs >
Event triggered when the SVG is clicked.
StopPropagation
bool
Determines whether click events should stop propagation.
PreventDefault
bool
Determines whether the default click action should be prevented.