Skip to content

Provide a way to explicitly fill a (scoped) slot with nothing #7829

@Justineo

Description

@Justineo

What problem does this feature solve?

See #7064 for some background information.

After providing an explicit way to declare that a slot is “empty”, we won't have to use props to control whether each slot is gonna be rendered or not.

What does the proposed API look like?

<v-component>
  <template slot="extra" empty></template>
</v-component>

or

<v-component>
  <template slot="extra"><empty-slot/></template>
</v-component>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions