Base Element is a javascript Class that extends HTMLElement and provides a set of properties and methods for creating custom web components.
Created with the help of Base Element.
You don't need npm or any dependencies. Just a js file.
No build tools, no transpilers, no bundlers, no frameworks.
Just import a js file.
Small footprint, fast loading. Just a ~1.7kb file (0.8kb gzipped).
base-element.js from GitHub's Base Element repository to your project.base-element.js in your component file like this: import { BaseElement } from "./path/to/base-element.js".BaseElement as a base class for your custom elements.Contributions are welcome! Please read README for more information.