HTML <img>
<img src="https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/Zbpz0ckT0vz5/amnt.svg" alt="Loading Wheel" width="48" height="48">
Inline SVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="currentColor" aria-hidden="true"><circle cx="24" cy="24" r="5"/><rect x="22" y="2" width="4" height="14" rx="2"/><rect x="22" y="2" width="4" height="14" rx="2" transform="rotate(45 24 24)"/><rect x="22" y="2" width="4" height="14" rx="2" transform="rotate(90 24 24)"/><rect x="22" y="2" width="4" height="14" rx="2" transform="rotate(135 24 24)"/><rect x="22" y="2" width="4" height="14" rx="2" transform="rotate(180 24 24)"/><rect x="22" y="2" width="4" height="14" rx="2" transform="rotate(225 24 24)"/><rect x="22" y="2" width="4" height="14" rx="2" transform="rotate(270 24 24)"/><rect x="22" y="2" width="4" height="14" rx="2" transform="rotate(315 24 24)"/></svg>
CSS background-image
.loading-wheel {
background-image: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/Zbpz0ckT0vz5/amnt.svg");
background-size: contain;
}
CSS mask-image (takes the text colour)
.loading-wheel {
width: 1.5em; height: 1.5em;
background-color: currentColor;
mask: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/Zbpz0ckT0vz5/amnt.svg") center / contain no-repeat;
}
React
import LoadingWheelSvg from "./loading-wheel.jsx"; // from the React tab above
<LoadingWheelSvg width={48} height={48} />