component

Base component using `@shgysk8zer0/aegis` & `@shgysk8zer0/aegis-styles`

MIT License

Downloads
532
Stars
3
Committers
2

@aegisjsproject/component

Base component using @aegisjsproject/core & @aegisjsproject/styles.


Example Component

import { AegisComponent, TRIGGERS, SYMBOLS } from '@aegisjsproject/component';
import { html, css, appendTo, addStyles } from '@aegisjsproject/core';

const template = html`<h1>Hello, World!</h1>`;

const stlyes = css`
.foo {
  color: red;
}
`

export class HTMLHelloWorldElement extends AegisComponent {
  constructor() {
    super({ template, styles });
  }
}

HTMLHelloWorldElement.register('hello-world');