8000 Support named slots · Issue #103 · reactive-elements/reactive-elements · GitHub
[go: up one dir, main page]

Skip to content

Support named slots #103

@ChristianMurphy

Description

@ChristianMurphy

Currently ReactiveElements supports the default slot

<example-component>
  <div>this content goes in the default slot</div>
</example-component>

The web components spec supports multiple named slots.
https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_templates_and_slots#Adding_flexibility_with_slots

<example-component>
  <div>this content goes in the default slot</div>
  <span slot="my-text">Let's have some different text!</span>
</example-component>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0