#What is the best way to iterate over children components?
1 messages · Page 1 of 1 (latest)
yup
You can't really iterate over the children because the slot gets rendered to a string of html
I assume it would need to happen in the parent Tab component.
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:
You could also use an existing tab container web component, something like https://github.com/github/tab-container-element