Skip to content

docs: clarify scoped slot examples#3427

Open
ubugeeei wants to merge 8 commits into
vuejs:mainfrom
ubugeeei-forks:codex/clarify-scoped-slot-docs
Open

docs: clarify scoped slot examples#3427
ubugeeei wants to merge 8 commits into
vuejs:mainfrom
ubugeeei-forks:codex/clarify-scoped-slot-docs

Conversation

@ubugeeei

@ubugeeei ubugeeei commented Jul 6, 2026

Copy link
Copy Markdown
Member

Motivation

I have some feedback from my friend about scoped slot documentation.

Some readers find the scoped slots examples difficult to follow because the parent/child relationship and the usage/definition sides are implicit.
This update makes the example flow more explicit by showing the parent component usage first, then the child component slot definition, matching the order used in the JavaScript function analogy below.

Changes

  • Show the parent component usage before the child slot definition in the scoped slots guide (align to JS image)
  • Rename the received slot props binding to receivedProps
  • Remove implicit local state from scoped slot examples
  • Update the scoped slots diagram and Playground links to match the new examples

Note: corepack pnpm type currently fails on an existing .vitepress/config.ts:795 plugin type cast issue unrelated to this change.

@netlify

netlify Bot commented Jul 6, 2026

Copy link
Copy Markdown

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit 73fd04b
🔍 Latest deploy log https://app.netlify.com/projects/vuejs/deploys/6a4b5d60d2d9c40008b22a82
😎 Deploy Preview https://deploy-preview-3427--vuejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ubugeeei ubugeeei marked this pull request as draft July 6, 2026 07:06
@ubugeeei ubugeeei marked this pull request as ready for review July 6, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant