-
Notifications
You must be signed in to change notification settings - Fork 27
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
allowed elements for slots #55
base: main
Are you sure you want to change the base?
Conversation
How would a developer provide this information? |
Is there a way to fully require this at runtime? The listing would be more of a suggestion, right? In this way maybe Maybe there's room for riffing on the attribute syntax:
Here you apply a type to the attribute, it would be interesting to be able to add a element type and/or tag name in a form like:
Fits in with the feeling behind this tweet: https://twitter.com/UXtechnologist/status/1408438674702929922
|
@thepassle for our purposes we would use a custom JSDocs Tags with Stencil.
This is a suggestion in the same way that only putting a The HTML spec is litered with these kinds of things:
@Westbrook this seems a little bit overly complex having both the selector and type information |
I think these types of discussions should be had on an issue, and not in a PR. If someone wants to open an issue for this. (the HTML spec has the concept of "content models" btw: https://html.spec.whatwg.org/multipage/dom.html#content-models) |
There is an issue: #46 |
Thanks. I didn't notice that linked. |
No description provided.