1
/
of
1
How to actually pass Svelte component through props?
How to actually pass Svelte component through props?
in the parent component when you create dynamic content Here is an example of how you can use these Composing Components 58 Passing data through slot props
In Svelte, we can pass data from parent to child components using props Props are properties that allow the parent to pass data to its child
svelte slot props Using allows you to pass Svelte components to another Svelte component Well, you can use the slot> directive in Svelte !-- Child component
sveltekit slot Interactive example Svelte apps
Regular
price
180.00 ₹ INR
Regular
price
180.00 ₹ INR
Sale
price
180.00 ₹ INR
Unit price
/
per
Share
![svelte pass props to slot](10039.jpg)