Skip to content

Extend element instead of creating new custom element #78

Open
@dy

Description

As in the example

class WordCount extends HTMLParagraphElement {
...
}
customElements.define("word-count", WordCount, { extends: "p" });
<p is="word-count"></p>

Is there a way to create such component via preact-custom-element?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions