@nightingale-elements/nightingale-new-core
Version:
Base Elements for Nightingale Components
18 lines (14 loc) • 439 B
text/typescript
import { LitElement } from "lit";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type Constructor<T = {}> = new (...args: any[]) => T;
class NightingaleElement extends LitElement {
override connectedCallback() {
super.connectedCallback();
this.style.display = "inline-block";
this.style.lineHeight = "0";
}
override createRenderRoot() {
return this;
}
}
export default NightingaleElement;