Skip to content

transferring slots#4045

Merged
ElianCodes merged 2 commits into
withastro:mainfrom
BryceRussell:slot-drilling
Aug 4, 2023
Merged

transferring slots#4045
ElianCodes merged 2 commits into
withastro:mainfrom
BryceRussell:slot-drilling

Conversation

@BryceRussell
Copy link
Copy Markdown
Member

@BryceRussell BryceRussell commented Aug 3, 2023

What kind of changes does this PR include?

  • New or updated content

Description

Adds example on how to transfer slots from one component to another using a <slot name="name" slot="name""/> tag

Let me know if any of this could be worded better, I originally called this pattern "slot drilling" but I think "slot transferring" is a better word for explaining what is happening.

@netlify
Copy link
Copy Markdown

netlify Bot commented Aug 3, 2023

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit d82eb3d
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/64ccca3475180d0008946274
😎 Deploy Preview https://deploy-preview-4045--astro-docs-2.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 site configuration.

Copy link
Copy Markdown
Member

@ElianCodes ElianCodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks @BryceRussell

@ElianCodes
Copy link
Copy Markdown
Member

I don't think there's any more real editing needed here, so let's ship it! 🚀🛳️

@ElianCodes ElianCodes merged commit 063da61 into withastro:main Aug 4, 2023
imbant pushed a commit to imbant/Astro-docs that referenced this pull request Aug 7, 2023
Co-authored-by: Elian ☕️ <hello@elian.codes>
yanthomasdev added a commit that referenced this pull request Aug 7, 2023
…4065)

Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
@BryceRussell BryceRussell deleted the slot-drilling branch September 21, 2023 13:01
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.

Document new usecase for slot drilling

2 participants