-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Document passing information from a component to a function slot #8855
Copy link
Copy link
Closed
Labels
add new contentDocument something that is not in docs. May require testing, confirmation, or affect other pages.Document something that is not in docs. May require testing, confirmation, or affect other pages.help wantedIssues looking for someone to run with them!Issues looking for someone to run with them!
Description
📚 Subject area/topic
Slots
📋 Suggested page
https://docs.astro.build/en/basics/astro-components/#slots
📋 General description or bullet points (if proposing new content)
- Slots can be a function. That allows information to be passed from component A to its parent, so the parent can decide which children to pass down to A.
- This pattern is shown as an example in the reference here: https://docs.astro.build/en/reference/api-reference/#astroslotsrender
🖥️ Reproduction of code samples in StackBlitz
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
add new contentDocument something that is not in docs. May require testing, confirmation, or affect other pages.Document something that is not in docs. May require testing, confirmation, or affect other pages.help wantedIssues looking for someone to run with them!Issues looking for someone to run with them!