diff --git a/docs-src/documentation/web-components.page.ts b/docs-src/documentation/web-components.page.ts index a16482de..11405b5e 100644 --- a/docs-src/documentation/web-components.page.ts +++ b/docs-src/documentation/web-components.page.ts @@ -107,5 +107,38 @@ export default ({ 'customElements.define("text-field", TextField)', 'typescript' )} + ${Heading('WebComponent solution', 'h3')} +
+ There is already a Markup based web components solution you can + use to make your web component creation easy and still take + advantage of Markup reactive template. +
+ ${CodeSnippet( + 'class TextField extends WebComponent {\n' + + ' static observedAttributes = ["value", "disabled"];\n' + + ' value = "";\n' + + ' disabled = false;\n' + + ' \n' + + ' render() {\n' + + ' return html`\n' + + ' \n' + + ' `\n' + + ' }\n' + + '}\n' + + '\n' + + 'customElements.define("text-field", TextField)', + 'typescript' + )} ++ You can learn more about this powerful tool by checking the + WebComponent package. +
`, })