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
Implement slot-like replacement for <content select>
#2278
Comments
<slot>
as a replacement for <content select>
<can-slot>
as a replacement for <content select>
<can-slot>
as a replacement for <content select>
<content select>
Why Why not just use |
@BigAB I mentioned a few reasons in the bitovi chat a while ago. Three major reasons:
|
To be clear, I'm not sold on One other point, all the
However, I like using elements for simplifying setting up default content. |
Moving to can-component |
Background on slots:
https://webkit.org/blog/4096/introducing-shadow-dom-api/
https://www.w3.org/TR/shadow-dom/#distributions
https://www.w3.org/TR/shadow-dom/#dfn-slot-element
content && template-NAME
Example 1
Shadow DOM:
User DOM:
The text was updated successfully, but these errors were encountered: