Axinom Mosaic Libraries
    Preparing search index...

    Variable ImgElementConst

    ImgElement: React.FC<ImgElementProps> = ...

    Centralized image component with proper accessibility handling. Provides consistent image rendering across the application with automatic accessibility attributes based on the decorative flag.

    For non-decorative images, alt text is required to ensure accessibility. For decorative images, alt text is automatically set to empty string.

    Basic image with required alt text
    <ImgElement
    src="/path/to/image.jpg"
    alt="Description of the image"
    />
    Decorative image (alt not required or allowed)
    <ImgElement
    src="/path/to/decorative.jpg"
    decorative={true}
    />
    Navigation icon
    <ImgElement
    src="/icons/menu.svg"
    decorative={true}
    width={24}
    height={24}
    />