Skip to content

Ambiguous statements about default slots #1995

@woothu

Description

@woothu

In new slot documentation in one place it states:

Whenever there are multiple slots, use the full <template> based syntax for all slots

And in another section (Named Slots Shorthand) there is an example:

<base-layout>
  <template #header>
    <h1>Here might be a page title</h1>
  </template>

  <p>A paragraph for the main content.</p>
  <p>And another one.</p>

  <template #footer>
    <p>Here's some contact info</p>
  </template>
</base-layout>

So what is the best practice for defining default slot when there are multiple of them?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions