mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
10 lines
254 B
JavaScript
10 lines
254 B
JavaScript
class CustomContainer extends HTMLElement {
|
|
constructor() {
|
|
super();
|
|
|
|
const shadow = this.attachShadow({ mode: 'open' });
|
|
shadow.innerHTML = '<slot></slot>';
|
|
}
|
|
}
|
|
customElements.define('custom-container', CustomContainer);
|