html slot ✓ HTML Embed Product Docs

฿100.00


The slot standard defines two use cases: named slots and unnamed slots export default function MyUnusedSlot { return html`slot namehtml slot HTML slot> Tag The HTML slot> element defines a slot, typically in a shadow tree You can use the slot> tag with the template> tag to create a template

html slotYou can reuse your custom code across your project by putting it inside a Slot instance Add an HTML Embed component to your canvas and set it

html slot return html`slot @slotchange=${}>slot>`; } For more information, see HTMLSlotElement on MDN @queryAssignedElements and