wcb/examples/demo/BooleanPropTest.mjs
2023-12-10 10:58:46 +01:00

11 lines
342 B
JavaScript

import { WebComponent } from "../../src/index.js";
export class BooleanPropTest extends WebComponent {
static properties = ["is-inline", "anotherone"];
get template() {
return `<p>is-inline: ${this.props.isInline}</p><p>another-one: ${this.props.anotherone}</p>`;
}
}
customElements.define("boolean-prop-test", BooleanPropTest);