HTML <img>
<img src="https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/0Q14OnP0OBjN/amnt.svg" alt="Birthday Cake" width="48" height="48">
Inline SVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2c-.8 1-.8 1.7 0 2.5.8-.8.8-1.5 0-2.5Z"/><path d="M12 5v3"/><path d="M7 8h10v5H7z"/><path d="M3 13h18v8H3z"/><path d="M3 16c2 0 2 2 4 2s2-2 5-2 3 2 5 2 2-2 4-2"/></svg>
CSS background-image
.birthday-cake {
background-image: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/0Q14OnP0OBjN/amnt.svg");
background-size: contain;
}
CSS mask-image (takes the text colour)
.birthday-cake {
width: 1.5em; height: 1.5em;
background-color: currentColor;
mask: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/0Q14OnP0OBjN/amnt.svg") center / contain no-repeat;
}
React
import BirthdayCakeSvg from "./birthday-cake.jsx"; // from the React tab above
<BirthdayCakeSvg width={48} height={48} />