HTML <img>
<img src="https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/-YtX53tMDNzE/amnt.svg" alt="Edit Calendar" 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="M8 3v3M16 3v3M3 9h18"/><path d="M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h7"/><path d="m13 21 2.5-.5 5-5a1.4 1.4 0 0 0-2-2l-5 5L13 21Z"/><path d="m17.5 14.5 2 2"/></svg>
CSS background-image
.edit-calendar {
background-image: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/-YtX53tMDNzE/amnt.svg");
background-size: contain;
}
CSS mask-image (takes the text colour)
.edit-calendar {
width: 1.5em; height: 1.5em;
background-color: currentColor;
mask: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/-YtX53tMDNzE/amnt.svg") center / contain no-repeat;
}
React
import EditCalendarSvg from "./edit-calendar.jsx"; // from the React tab above
<EditCalendarSvg width={48} height={48} />