Hi @grayloon
I don't think stacks are the right choice for what you are trying to achieve.
Maybe you should move the <ul></ul> section inside the component, and instead of a single product, you could pass a collection to the product-details component.
That way, you can just have 2 loops inside your component rendering the ul's on one side, and the tab panels on the other:
product.blade.php:
<x-store.products.product-details :product="$products" />
product-details.blade.php (component):
<div class="tablist-container">
<ul role="tablist">
@foreach($products as $product)
<li role="tab" tabindex="0" aria-selected="true" aria-controls="tab--product-details">
Product Details
</li>
@endforeach
</ul>
@foreach($products as $product)
<div id="tab--product-details" role="tabpanel" aria-expanded="true">
<div
class="tabpanel--header"
role="tab"
tabindex="0"
aria-selected="true"
aria-controls="tab--product-details"
>
Product details
</div>
<div class="tabpanel--content">
{!! $product->description !!}
<x-recommended-use :product="$product"/>
</div>
</div>
@endforeach
</div>
Or something like that...
Hope this helps!
