Skip to content

Instantly share code, notes, and snippets.

View AdamManuel-dev's full-sized avatar
Inspired

Adam Manuel AdamManuel-dev

Inspired
View GitHub Profile
@AdamManuel-dev
AdamManuel-dev / Svelte Custom Element v1 Wrapper
Last active April 28, 2023 21:35
This is a wrapper for turning a Svelte Component built as an entry point into a Web Component using the Custom Element v1 Spec
import Gallery from './COA/COAGallery.svelte';
/**
* C.O.A. Gallery Custom Element v1 Component Class
*/
class COAGallery extends HTMLElement {
/**
* This defines the attributes to watch in the custom element to trigger the `attributeChangedCallback` method
*/
static get observedAttributes() {