Slots & Composition

A component's original child nodes are captured on connect and projected wherever the template asks for them: $(slot()) for the default slot, $(slot('name', 'fallback')) for named slots.

This paragraph was written inside the <card-box> tag and projected into the card body.

A custom footer, marked with slot="footer"

This card has no footer content, so the fallback text shows below.