Add custom elements

This commit is contained in:
Oliver 2026-02-10 23:03:43 -07:00
parent c7541db1d9
commit e8bf135424
5 changed files with 205 additions and 1 deletions

View file

@ -0,0 +1,11 @@
import { OFTSVGLoader } 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 OFTIcon extends OFTSVGLoader {
static elementName = `oft-icon`;
static _stylePath = `icon.css`;
};