svelte get slot content
Give Svelte a spin, if you're an Angular fanboi
Give Svelte a spin, if you're an Angular fanboi
Regular
price
1000 ₹ INR
Regular
price
Sale
price
1000 ₹ INR
Unit price
/
per
Give Svelte a spin, if you're an Angular fanboi svelte get slot content Composition means allowing your components to contain other components or HTML elements Slots are made possible in Svelte by using the slot> svelte slot Interactive Svelte playground
svelte slot Svelte @html tag, this renders content with HTML in it Now I have a svelte , I'll also add a basic container to wrap the slot:
sveltekit slot p> and if you put a second p slot=content> p> you overwrite the original content To get over this, you can use svelte:fragment It In addition, you can find an explanation at Using templates and slots Technical summary Content categories · Flow content, phrasing content