Quote from site: "Everything I love about Custom Elements made available for any node, and through CSS selectors.
No Custom Elements, no Shadow DOM, and no polyfills are needed."
You can test it here : RegElt
<button class="hi-five">
Hi Five One
</button>
<button class="hi-five">
Hi Five Two
</button>
import {define} from 'regular-elements';
define('.hi-five', {
connectedCallback() {
this.innerHTML = ' 🖐 ' + this.innerHTML;
}
});
Top comments (0)