@nent/core
Version:
34 lines (30 loc) • 856 B
JavaScript
/*!
* NENT 2022
*/
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
const Content = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
constructor() {
super();
this.__registerHost();
}
render() {
return (h(Host, null, h("slot", null)));
}
static get style() { return "n-content: { display: contents; }"; }
}, [4, "n-content"]);
function defineCustomElement$1() {
if (typeof customElements === "undefined") {
return;
}
const components = ["n-content"];
components.forEach(tagName => { switch (tagName) {
case "n-content":
if (!customElements.get(tagName)) {
customElements.define(tagName, Content);
}
break;
} });
}
const NContent = Content;
const defineCustomElement = defineCustomElement$1;
export { NContent, defineCustomElement };