UNPKG

tiny-essentials

Version:

Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.

24 lines 993 B
export default TinyHtmlIcon; /** * TinyIcon is a lightweight helper class for managing icon-like elements * (such as `<i>` or `<span>` tags) with class-based styling. * It extends TinyHtml to provide direct DOM element manipulation. * * @extends TinyHtmlTemplate<HTMLElement> */ declare class TinyHtmlIcon extends TinyHtmlTemplate<HTMLElement> { /** @type {string} */ static "__#private@#defaultTag": string; /** @param {string} value */ static set defaultTag(value: string); /** @returns {string} */ static get defaultTag(): string; /** * Creates a new TinyIcon instance. * @param {string|string[]|Set<string>} tags - Initial icon classes to apply. * @param {string} [tagName=TinyHtmlIcon.#defaultTag] - The HTML tag to use for the element (e.g., `i`, `span`). */ constructor(tags: string | string[] | Set<string>, tagName?: string); } import TinyHtmlTemplate from './TinyHtmlTemplate.mjs'; //# sourceMappingURL=TinyHtmlIcon.d.mts.map