blob: 7bcfb5323fb5a33a533eaa51ad9629a360fd23af [file] [log] [blame]
<!--
Copyright 2022 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<!DOCTYPE html>
<script>
class CustomButton extends HTMLElement {
constructor() {
super();
const shadow = this.attachShadow({ mode: 'open' });
shadow.innerHTML = `<slot></slot>`;
}
}
customElements.define('custom-button', CustomButton);
</script>
<custom-button>Click me</custom-button>