Repository navigation
docs: mention using v-slot directly on a component for a lone named slot - #3491
Open
ValentinYoushkevich wants to merge 1 commit into
Open
ValentinYoushkevich wants to merge 1 commit into
ValentinYoushkevich wants to merge 1 commit into
Conversation
This was referenced Nov 9, 2026
✅ Deploy Preview for vuejs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Problem
The Slots guide and the
v-slotAPI entry say a named slot needs a<template>, but the compiler also acceptsv-sloton the component tag for a lone named slot (<MyComponent #header>…</MyComponent>), and vuejs/core covers it with theon component named slottest. Closes #2190.Proposed Solution
Mention that form in the Named Slots section and in the API "Limited to" list. Mixing it with
<template v-slot>children is still a compile error, as the guide already explains.Additional Information
vuejs/eslint-plugin-vue#3192 waits on this before
vue/valid-v-slotstops reporting the form.