@siberiaweb/components
Version:
36 lines (25 loc) • 620 B
text/typescript
import CSS from "./CSS";
import WebComponent from "@siberiaweb/webcomponent/lib/WebComponent";
import "./Icon.css";
/**
* Значок.
*/
export default class Icon extends WebComponent {
/**
* Наименование компонента.
*/
public static readonly COMPONENT_NAME: string = "sw-icon";
/**
* @override
*/
protected firstConnectedCallback() {
super.firstConnectedCallback();
this.classList.add( CSS.ICON );
}
/**
* Конструктор.
*/
constructor() {
super();
}
}