Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Using WebC for behavior-only (“wrapper”) components #74

Open
Zearin opened this issue Apr 8, 2023 · 1 comment
Open

Docs: Using WebC for behavior-only (“wrapper”) components #74

Zearin opened this issue Apr 8, 2023 · 1 comment

Comments

@Zearin
Copy link

Zearin commented Apr 8, 2023

It’s been a while since I used Vue, but from what I remember there were some components that could define only behavior—no markup—which could then be used to wrap other components. For example:

<behavior-enhancing-component>
    <typical-component></typical-component>
</behavior-enhancing-component>

If this is possible, can you add some docs about it?

@Zearin
Copy link
Author

Zearin commented Apr 10, 2023

I think the answer to my question is: Yes.

I found an excellent resource here:
https://thomaswilburn.github.io/wc-book/sd-behavioral.html

That said: this pattern was important enough for its own book chapter in the above link, as well as in frameworks like Vue. The WebC docs should probably cover this topic, even if just lightly.

@Zearin Zearin changed the title Can WebC be used for behavior-only “wrapper” elements? Docs: Using WebC for behavior-only (“wrapper”) components Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant