HTML <img>
<img src="https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/cTZ_PdcfPfJp/amnt.svg" alt="Search Button" width="48" height="48">
Inline SVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 80" preserveAspectRatio="none" fill="currentColor"><path fill-rule="evenodd" d="M22 5h196a18 18 0 0 1 18 18v34a18 18 0 0 1-18 18H22A18 18 0 0 1 4 57V23A18 18 0 0 1 22 5Zm94 16a15 15 0 1 0 10.6 25.6L138 58a3 3 0 0 0 4.2-4.2l-11.6-11.6A15 15 0 0 0 116 21Zm0 6a9 9 0 1 1 0 18 9 9 0 0 1 0-18Z"/></svg>
CSS background-image
.search-button {
background-image: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/cTZ_PdcfPfJp/amnt.svg");
background-size: contain;
}
CSS mask-image (takes the text colour)
.search-button {
width: 1.5em; height: 1.5em;
background-color: currentColor;
mask: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/cTZ_PdcfPfJp/amnt.svg") center / contain no-repeat;
}
React
import SearchButtonSvg from "./search-button.jsx"; // from the React tab above
<SearchButtonSvg width={48} height={48} />