← Files DataARCHIVED FILE
output_formats/html/src/ui/primitives/SvgIcon.jsx
452 Bytes · Nov 28, 2026 · 18:12 UTC
import React from "react";
/** Shared rendering for bundled SVG masks, independent of the asset loader. */
export function SvgIcon({ name, src, size = 16, className = "" }) {
return <span
className={`dashboard-icon${name === "theme" ? " theme-palette-icon" : ""} ${className}`.trim()}
aria-hidden="true"
data-dashboard-icon={name}
style={{ width: size, height: size, "--dashboard-icon-mask": `url(${JSON.stringify(src)})` }}
/>;
}
SHA-256: 2c05eead75190ce25e92b07a84f986ffa8ad8a6e480b9a4a53567df28b791527