webcomponents / custom-elements-manifest

A file format for describing custom elements

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is WebComponent a Container for other Elements (low prio)

jogibear9988 opened this issue · comments

We should also have a configuration to tell if a WebComponent is a container for other elements (maybe a array of querySelectors wich define possible elements)

This is needed for a good designer experience, so I know if I could drag other components into

How is this different from slots?

Not every custom element uses slots

Then im not sure what you mean. Can you provide some more information/context and some code examples, and a proposal of what you'd like to happen in the schema?

Okay, maybe we also could use the the empty slot.
But then the empty slot is mandatory, means if it is not there the element is not allowed to have children

or we do something like this
uses #46

   {
        name: "",
        allowedChildren: [":not(*)"]
    }