HTML <img>
<img src="https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/KuCkC5TSjJRQ/amnt.svg" alt="File Download" width="48" height="48">
Inline SVG
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2h8l4 4v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Z"/><path d="M14 2v4h4"/><path d="M11 9v8"/><path d="m8 14 3 3 3-3"/></svg>
CSS background-image
.file-download {
background-image: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/KuCkC5TSjJRQ/amnt.svg");
background-size: contain;
}
CSS mask-image (takes the text colour)
.file-download {
width: 1.5em; height: 1.5em;
background-color: currentColor;
mask: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/KuCkC5TSjJRQ/amnt.svg") center / contain no-repeat;
}
React
import FileDownloadSvg from "./file-download.jsx"; // from the React tab above
<FileDownloadSvg width={48} height={48} />