In the last article, we got our hands dirty with Web Components by creating an HTML template that is in the document but not rendered until we need it.
Next up, we’re going to continue our quest to create a custom element version of the dialog component below which currently only uses HTMLTemplateElement:
See the Pen
Dialog with template with script by Caleb Williams (@calebdwilliams)
So let’s push ahead by creating a custom … Read article “Creating a Custom Element from Scratch”
The post Creating a Custom Element from Scratch appeared first on CSS-Tricks.