<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/svelte-slot-forwarding-with-props-fv8encncn" -->

---
title: Svelte Slot Forwarding with Props | daily.dev
description: Learn how to utilize slots in Svelte and combine slot forwarding and slot props to pass content and data between components.
canonical: https://daily.dev/posts/svelte-slot-forwarding-with-props-fv8encncn
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Svelte Slot Forwarding with Props | daily.dev
og:description: Learn how to utilize slots in Svelte and combine slot forwarding and slot props to pass content and data between components.
og:url: https://daily.dev/posts/svelte-slot-forwarding-with-props-fv8encncn
og:image: https://api.daily.dev/og/posts/FV8EnCncn.png
og:image:alt: Svelte Slot Forwarding with Props
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Svelte Slot Forwarding with Props

**[DockYard](https://daily.dev/sources/dockyard)** · 8 min read · 4 upvotes · 0 comments

## Summary

Learn how to utilize slots in Svelte and combine slot forwarding and slot props to pass content and data between components.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dockyard.com/blog/2024/04/26/svelte-slot-forwarding-with-props>

---

Tags: [#svelte](https://daily.dev/tags/svelte), [#web-components](https://daily.dev/tags/web-components)

[View this post on daily.dev](https://daily.dev/posts/svelte-slot-forwarding-with-props-fv8encncn)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Svelte Slot Forwarding with Props","url":"https://daily.dev/posts/svelte-slot-forwarding-with-props-fv8encncn","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/svelte-slot-forwarding-with-props-fv8encncn"},"datePublished":"2024-04-26T18:58:59.288Z","dateModified":"2024-08-30T02:21:05.345Z","description":"Learn how to utilize slots in Svelte and combine slot forwarding and slot props to pass content and data between components.","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5dd59285cfaeb3e86309b64fda10bc91?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5dd59285cfaeb3e86309b64fda10bc91?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"DockYard","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"DockYard","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/0a287d5bf0264b359ea2e5dd2c7635aa","url":"https://daily.dev/sources/dockyard"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/svelte-slot-forwarding-with-props-fv8encncn","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"svelte,web-components","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DockYard","item":"https://daily.dev/sources/dockyard"},{"@type":"ListItem","position":3,"name":"Svelte Slot Forwarding with Props"}]}
```

