Add custom HTML Elements for icons/SVG loading

This commit is contained in:
Oliver-Akins 2025-07-13 21:49:01 -06:00
parent 0fcf24bfcb
commit 361ddfb7b6
7 changed files with 255 additions and 0 deletions

View file

@ -0,0 +1,11 @@
import { TafSVGLoader } from "./svgLoader.mjs";
/**
Attributes:
@property {string} name - The name of the icon, takes precedence over the path
@property {string} path - The path of the icon file
*/
export class TafIcon extends TafSVGLoader {
static elementName = `taf-icon`;
static _stylePath = `icon.css`;
};