#What is the best way to iterate over children components?

1 messages · Page 1 of 1 (latest)

dire abyss
#

Inside of a .astro file?

languid zephyr
#

yup

dire abyss
#

You can't really iterate over the children because the slot gets rendered to a string of html

languid zephyr
#

I assume it would need to happen in the parent Tab component.

dire abyss
#

The best way to have interactive slots in Astro is to use slot functions

#

I was trying to type out an example but I forgot Chris already has a good one:

languid zephyr
#

okay cool I will take a look

#

thank you!