astro slotThe current API allows authors to check for attributes in 2 different ways — name in Astro.slots and Astro.slots[name] . Returning raw strings would mean thatYou need to know how Slots works. So basically Slots in Astro put elements after it when using the component as a Parent.