Re: [WICG/webcomponents] [scoped-registries] Should WC be usable as "views"? (Issue #998)

It is rather a question than proposal. The answer is simple: it is already possible and widely used. 

Any Web Component can be as container as just a self-sufficient UI. The "view" you are talking is a `container`. Either shadow DOM or light DOM can be used for container. 

Here are the samples of the `SLOT` based containers with light DOM:
[@epa-wg/custom-element](https://github.com/EPA-WG/custom-element), 
[slotted-element](https://github.com/sashafirsov/slotted-element),
[light-dom-element](https://github.com/sashafirsov/light-dom-element). 

Most of web components are working with SLOT as container via shadow DOM. That is just one of samples: [shadow-dom-element](https://github.com/sashafirsov/shadow-dom-element)

The discussion of using the template-based Web Components without shadow DOM are in progress. Here is just one of those:
[Functionally complete declarative templating](https://github.com/WICG/webcomponents/issues/997). 

It is unclear why this topic is marked by `scoped-registries`. Please elaborate the relation.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/998#issuecomment-1509993434
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/998/1509993434@github.com>

Received on Saturday, 15 April 2023 22:57:35 UTC