Accessibility
Image requires an alt prop in both URL and inline SVG modes. How that value is exposed depends on whether the image conveys meaning.
alt that describes purpose or content (for example, "Prepared logo" or "Officer profile photo").alt="" when the image adds no information beyond surrounding text or UI chrome.Do not omit alt or use placeholder strings like "image" when the image carries meaning.
Renders a native <img> with the alt attribute forwarded directly. Screen readers announce the alt text as the image label.
Accessibility attributes are applied to the <svg> node:
alt non-empty): role="img" and aria-label={alt}.alt=""): aria-hidden={true} and focusable={false}.Both theme variants mount in the DOM, but the inactive variant uses display: none and is removed from the accessibility tree. Assistive tech announces a single image — the visible variant — with the shared alt value. Pass id once; it is applied to a display: contents themed root so the document keeps a single stable id without JavaScript theme branching (and without duplicating id on both variants).
alt text.src, the browser treats them like raster images; alt text behavior matches standard <img> semantics.